git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8871 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
Giovanni Di Sirio 2016-02-12 11:21:43 +00:00
parent abd7611bba
commit 2a48761772
1 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,7 @@ thread_t *chThdCreateFromHeap(memory_heap_t *heapp, size_t size,
if (wsp == NULL) {
return NULL;
}
#if CH_DBG_FILL_THREADS == TRUE
_thread_memfill((uint8_t *)wsp,
(uint8_t *)wsp + sizeof(thread_t),
@ -167,7 +167,7 @@ thread_t *chThdCreateFromHeap(memory_heap_t *heapp, size_t size,
(uint8_t *)wsp + size,
CH_DBG_STACK_FILL_VALUE);
#endif
chSysLock();
tp = chThdCreateI(wsp, size, prio, pf, arg);
tp->p_flags = CH_FLAG_MODE_HEAP;
@ -212,7 +212,7 @@ thread_t *chThdCreateFromMemoryPool(memory_pool_t *mp, tprio_t prio,
if (wsp == NULL) {
return NULL;
}
#if CH_DBG_FILL_THREADS == TRUE
_thread_memfill((uint8_t *)wsp,
(uint8_t *)wsp + sizeof(thread_t),