arch: arm: add explanatory comment for SPLIM_NS set functions
This commit adds an inline explanatory comment in the API for setting the non-secure stack-pointer limit registers, to stress that the API is only applicable to Mainline ARMv8-M MCUs. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
98e38109c4
commit
7d4339a920
1 changed files with 5 additions and 0 deletions
|
@ -41,6 +41,11 @@ static void configure_nonsecure_control(u32_t spsel_ns, u32_t npriv_ns)
|
|||
}
|
||||
|
||||
#if defined(CONFIG_ARMV8_M_MAINLINE)
|
||||
|
||||
/* Only ARMv8-M Mainline implementations have Non-Secure instances of
|
||||
* Stack Pointer Limit registers.
|
||||
*/
|
||||
|
||||
void tz_nonsecure_msplim_set(u32_t val)
|
||||
{
|
||||
__TZ_set_MSPLIM_NS(val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue