sim: Inhibit stack protector on stack coloration function

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei 2021-08-31 15:41:02 -03:00 committed by Xiang Xiao
parent a6e9be88c4
commit 2071aadc0e

View File

@ -151,7 +151,8 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype)
****************************************************************************/
#ifdef CONFIG_STACK_COLORATION
void up_stack_color(FAR void *stackbase, size_t nbytes)
void nostackprotect_function up_stack_color(FAR void *stackbase,
size_t nbytes)
{
/* Take extra care that we do not write outsize the stack boundaries */