Closed Skptak closed 1 year ago
All modified lines are covered by tests :white_check_mark:
Comparison is base (
ac5deb1
) 93.62% compared to head (7721ab0
) 93.62%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
/bot run formatting
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
Description
A task's privilege level is stored in
ulTaskFlag
member in the TCB. Current implementation ofportSWITCH_TO_USER_MODE()
does not update this flag but just lowers the processor's privilege level. This results in many APIs incorrectly determining task's privilege level and access permissions -This PR fixes the
portSWITCH_TO_USER_MODE()
implementation to correctly update theulTaskFlag
member in the TCB before lowering the processor's privilege level.Test Steps
Tested on Cortex-M7.
Checklist:
Related Issue
NA.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.