build: INIT_STACKS memset fix.
This commit fixes an issue with INIT_STACKS configuration option. k_memset is substituted by the libc memset routine to initialize a block of memory. Change-Id: Ic3e286d0976f618110b2828f6da76417b868aef0 Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@linux.intel.com>
This commit is contained in:
parent
0e46b81faf
commit
044bfc60c5
3 changed files with 12 additions and 5 deletions
|
@ -41,6 +41,9 @@ architecture.
|
|||
#include <toolchain.h>
|
||||
#include <nano_private.h>
|
||||
#include <wait_q.h>
|
||||
#ifdef CONFIG_INIT_STACKS
|
||||
#include <string.h>
|
||||
#endif /* CONFIG_INIT_STACKS */
|
||||
|
||||
tNANO _nanokernel = {0};
|
||||
|
||||
|
@ -118,7 +121,7 @@ void _NewContext(
|
|||
tCCS *pCcs = (tCCS *) pStackMem;
|
||||
|
||||
#ifdef CONFIG_INIT_STACKS
|
||||
k_memset(pStackMem, 0xaa, stackSize);
|
||||
memset(pStackMem, 0xaa, stackSize);
|
||||
#endif
|
||||
|
||||
/* carve the context entry struct from the "base" of the stack */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue