Skip to content

Conversation

@vishwamartur
Copy link
Contributor

@vishwamartur vishwamartur commented Nov 1, 2024

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.

Related to FreeRTOS#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](https://copilot-workspace.githubnext.com/FreeRTOS/FreeRTOS-Kernel/issues/331?shareId=XXXX-XXXX-XXXX-XXXX).
@vishwamartur vishwamartur requested a review from a team as a code owner November 1, 2024 16:25
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 1, 2024

@ActoryOu
Copy link
Member

ActoryOu commented Nov 2, 2024

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

@aggarg
Copy link
Member

aggarg commented Nov 4, 2024

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

@aggarg
Copy link
Member

aggarg commented Nov 7, 2024

@vishwamartur Would you please share the testing details.

@vishwamartur
Copy link
Contributor Author

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

@aggarg
Copy link
Member

aggarg commented Nov 12, 2024

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

@aggarg aggarg closed this Nov 12, 2024
moninom1 pushed a commit to moninom1/FreeRTOS-Kernel that referenced this pull request Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants