4.3.2 __cmse_nonsecure_entry Keyword
The __cmse_nonsecure_entry keyword declares an entry function that can
be called from the non-secure state. The execution state will be cleared before
returning to the caller, to avoid leaking sensitive data to the non-secure state.
On XC32, it can only be used when passing -mcmse to compiler.
Suggested Replacement
__attribute__((cmse_nonsecure_entry))
Caveats
None.
Examples
Consider migrating IAR code such as:
__cmse_nonsecure_entry void foo();
to MPLAB XC codes similar
to:
void __attribute__((cmse_nonsecure_entry)) foo();Further Information
None.
