Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of lwip-sys by
Diff: arch/sys_arch.c
- Revision:
- 14:ba056f7b4b37
- Parent:
- 13:bca6d04bc6d3
- Child:
- 15:7d4b24b58e04
--- a/arch/sys_arch.c Fri Aug 15 16:30:36 2014 +0100 +++ b/arch/sys_arch.c Thu Nov 06 11:00:51 2014 +0000 @@ -426,11 +426,13 @@ t->def.pthread = (os_pthread)thread; t->def.tpriority = (osPriority)priority; t->def.stacksize = stacksize; +#ifndef __MBED_CMSIS_RTOS_CA9 t->def.stack_pointer = (unsigned char*)malloc(stacksize); if (t->def.stack_pointer == NULL) { error("Error allocating the stack memory"); } #endif +#endif t->id = osThreadCreate(&t->def, arg); if (t->id == NULL) error("sys_thread_new create error\n");