FreeRTOS-Kernel icon indicating copy to clipboard operation
FreeRTOS-Kernel copied to clipboard

Fix SEC_STAT.IRM bit handling in ARC SEM interrupt entry/exit

Open vishwamartur opened this issue 1 year ago • 2 comments

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.s to include the changes in the interrupt entry/exit macros.

For more details, open the Copilot Workspace session.

vishwamartur avatar Nov 01 '24 16:11 vishwamartur

Hi @vishwamartur, Thanks for your contribution again! Could you help share your verfication result?

ActoryOu avatar Nov 02 '24 03:11 ActoryOu

@vishwamartur Would you please share how you tested these changes?

aggarg avatar Nov 04 '24 09:11 aggarg

@vishwamartur Would you please share the testing details.

aggarg avatar Nov 07 '24 11:11 aggarg

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

vishwamartur avatar Nov 07 '24 18:11 vishwamartur

I am closing this PR. Please open a new one when you have tested the changes.

aggarg avatar Nov 12 '24 11:11 aggarg