-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Disable stack overflow check for MPU ports #1231
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
Conversation
Stack overflow check is not straight forward to implement for MPU ports because of the following reasons: 1. The context is stroed in TCB and as a result, pxTopOfStack member points to the context location in TCB. 2. System calls are executed on a separate privileged only stack. It is still okay because an MPU region is used to protect task stack which means task stack overflow will trigger an MPU fault. Signed-off-by: Gaurav Aggarwal <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1231 +/- ##
==========================================
+ Coverage 91.64% 91.65% +0.01%
==========================================
Files 6 6
Lines 3254 3259 +5
Branches 903 901 -2
==========================================
+ Hits 2982 2987 +5
Misses 132 132
Partials 140 140
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Gaurav Aggarwal <[email protected]>
2feb8bd
|
Description
Stack overflow check is not straight forward to implement for MPU ports because of the following reasons:
It is still okay because an MPU region is used to protect task stack which means task stack overflow will trigger an MPU fault.
Test Steps
Verified on Cortex-M33 hardware.
Checklist:
Related Issue
#1195
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.