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 3 months 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