Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xtensa: mpu: update hardware if manipulating current domain #75832

Merged

Conversation

dcpleung
Copy link
Member

If adding/removing to the domain of the current running thread, we need to update the hardware MPU regions or else the addition or removal would not be reflected to current running thread.

dcpleung added 2 commits July 12, 2024 15:00
This adds a spinlock to make sure writing to hardware MPU
regions is atomic, and cannot be interrupted until all
regions are written to hardware.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
If adding/removing to the domain of the current running
thread, we need to update the hardware MPU regions or else
the addition or removal would not be reflected to current
running thread.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
@dcpleung dcpleung marked this pull request as ready for review July 12, 2024 22:25
@zephyrbot zephyrbot added the area: Xtensa Xtensa Architecture label Jul 12, 2024
@zephyrbot zephyrbot requested review from andyross, ceolin and nashif July 12, 2024 22:26
@nashif nashif added the backport v3.7-branch Request backport to the v3.7-branch label Jul 16, 2024
@dcpleung dcpleung assigned nashif and unassigned dcpleung Sep 15, 2024
@aescolar aescolar merged commit da5f7e1 into zephyrproject-rtos:main Sep 16, 2024
23 checks passed
@dcpleung dcpleung deleted the xtensa/mpu_domain_partition_fix branch September 16, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Xtensa Xtensa Architecture backport v3.7-branch Request backport to the v3.7-branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

xtensa: mpu: adding or removing partitions from memory domain of current running thread has no effect
5 participants