doc: add HW stack protection enabling in the board porting guidelines
Mention in the board porting guidelines the recommendation to enable by default the HW Stack Protection feature, and the rationale behind it. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
26a8f3765b
commit
38dd4683c6
1 changed files with 4 additions and 1 deletions
|
@ -432,7 +432,10 @@ while porting.
|
|||
|
||||
- It is recommended to enable the MPU by default, if there is support for it
|
||||
in hardware. For boards with limited memory resources it is acceptable to
|
||||
disable it.
|
||||
disable it. When the MPU is enabled, it is recommended to also enable
|
||||
hardware stack protection (CONFIG_HW_STACK_PROTECTION=y) and, thus, allow the
|
||||
kernel to detect stack overflows when the system is running in privileged
|
||||
mode.
|
||||
|
||||
.. _flash-and-debug-support:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue