Skip to content

RTL8195AM - Handle MSP properly and enlarge lwip TCP thread stacksize #5043

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

tung7970
Copy link
Contributor

@tung7970 tung7970 commented Sep 7, 2017

Notes:

  • Pull requests will not be accepted until the submitter has agreed to the contributer agreement.
  • This is just a template, so feel free to use/remove the unnecessary things

Description

Handle MSP properly and enlarge lwip tcp thread stacksize.

Set MSP in assembly block before jumping to the real platform startup code to avoid
redundant SP push/pop in prologue and epilogue. GCC does that when sibling code optimization is turned off which unfortunately happens under debug profile.

Also enlarge lwip tcp thread stacksize to reserve extra head room for GCC debug profile.

Status

READY

Migrations

NO

Related PRs

#4665

Todos

NONE

Deploy notes

NONE

Steps to test or reproduce

NONE

tung7970 and others added 2 commits September 7, 2017 11:10
Set MSP through assembly block before jumping to the real platform
startup code to avoid redundant SP push/pop in prologue and epilogue.

Signed-off-by: Tony Wu <[email protected]>
Solve lwip TCP stack overflow under debug profile.

Signed-off-by: Tony Wu <[email protected]>
@tung7970
Copy link
Contributor Author

tung7970 commented Sep 7, 2017

@Archcady already submits a PR for this. Closing this one.

@tung7970 tung7970 closed this Sep 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant