mirror of https://github.com/ARMmbed/mbed-os.git
LWIP: Corrected pointer type when allocating stack memory to a new thread
parent
86c6d635d0
commit
db5d9f7291
|
|
@ -427,11 +427,7 @@ sys_thread_t sys_thread_new(const char *pcName,
|
|||
t->def.tpriority = (osPriority)priority;
|
||||
t->def.stacksize = stacksize;
|
||||
#ifndef __MBED_CMSIS_RTOS_CA9
|
||||
#if defined (__ICCARM__)
|
||||
t->def.stack_pointer = (uint32_t*)malloc(stacksize);
|
||||
#else
|
||||
t->def.stack_pointer = (unsigned char*)malloc(stacksize);
|
||||
#endif
|
||||
if (t->def.stack_pointer == NULL) {
|
||||
error("Error allocating the stack memory");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue