-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arch: arm: make priv stack guard programming similar to normal guard
This commit aligns the programming of the privileged stack MPU guard with that of the default stack guard (i.e of supervisor threads). In particular: - the guard is programmed BELOW the address indicated in arch.priv_stack_start; it is, therefore, similar to the default guard that is programmed BELOW stack_info.start. An ASSERT is added to confirm that the guard is programmed inside the thread privilege stack area. - the stack fail check is updated accordningly - arch.priv_stack_start is adjusted in arch_userspace_enter(), to make sure we account for a (possible) guard requirement, that is, if building with CONFIG_MPU_STACK_GUARD=y. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
- Loading branch information
1 parent
f15c12d
commit 639eb76
Showing
2 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters