Skip to content
Commit 9eee2eae authored by Volodymyr Fialko's avatar Volodymyr Fialko Committed by Anas Nashif
Browse files

riscv: pmp: enable stackguard without multithreading



Without multithreading only two stacks present: ISR and main.
As any stack they also could overflow, so it make sense to add stack
guard for them also.

Remove stack guard dependency on multithreading and mark
`Z_RISCV_STACK_GUARD_SIZE` bytes at the beginning of stack as read-only
region with PMP entry.

Signed-off-by: default avatarVolodymyr Fialko <vfialko@marvell.com>
parent 2253a26c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment