FreeRTOS-Kernel
FreeRTOS-Kernel copied to clipboard
Fix SEC_STAT.IRM bit handling in ARC SEM interrupt entry/exit
Related to #331
Fix the Memory Read Protection Violation from Secure MPU exception on exit from interrupt.
- Add code to store SEC_STAT.IRM bit in INTERRUPT_PROLOGUE macro.
- Add code to restore SEC_STAT.IRM bit in INTERRUPT_EPILOGUE macro.
- Modify
portable/ThirdParty/GCC/ARC_EM_HS/arc_support.sto include the changes in the interrupt entry/exit macros.
For more details, open the Copilot Workspace session.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Hi @vishwamartur, Thanks for your contribution again! Could you help share your verfication result?
@vishwamartur Would you please share how you tested these changes?
@vishwamartur Would you please share the testing details.
Hi @ActoryOu and @aggarg,
Thank you for reviewing the PR. I haven’t yet tested the changes. I'll perform the required tests to verify the SEC_STAT.IRM bit handling in the interrupt entry/exit macros and will update the PR with the results shortly.
Please let me know if there are specific scenarios you'd like me to cover in the testing process.
Best regards,
Vishwa
I am closing this PR. Please open a new one when you have tested the changes.