aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/src
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-20 08:43:30 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-20 08:43:30 +0000
commit66c3169f4f74a769bd7f7cf8b8a5cdc0342bdc17 (patch)
tree2d739b527680e144c6387489861b0f3076b14750 /os/kernel/src
parent3ae01fd47b63b190ee6d7588d8721e8edad3d150 (diff)
downloadChibiOS-66c3169f4f74a769bd7f7cf8b8a5cdc0342bdc17.tar.gz
ChibiOS-66c3169f4f74a769bd7f7cf8b8a5cdc0342bdc17.tar.bz2
ChibiOS-66c3169f4f74a769bd7f7cf8b8a5cdc0342bdc17.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2390 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/src')
-rw-r--r--os/kernel/src/chdynamic.c18
-rw-r--r--os/kernel/src/chthreads.c9
2 files changed, 18 insertions, 9 deletions
diff --git a/os/kernel/src/chdynamic.c b/os/kernel/src/chdynamic.c
index fba8a0278..06e5bd00a 100644
--- a/os/kernel/src/chdynamic.c
+++ b/os/kernel/src/chdynamic.c
@@ -122,9 +122,12 @@ Thread *chThdCreateFromHeap(MemoryHeap *heapp, size_t size,
return NULL;
#if CH_DBG_FILL_THREADS
- memfill((uint8_t *)wsp, (uint8_t *)wsp + sizeof(Thread), THREAD_FILL_VALUE);
- memfill((uint8_t *)wsp + sizeof(Thread),
- (uint8_t *)wsp + size, STACK_FILL_VALUE);
+ _thread_memfill((uint8_t *)wsp,
+ (uint8_t *)wsp + sizeof(Thread),
+ THREAD_FILL_VALUE);
+ _thread_memfill((uint8_t *)wsp + sizeof(Thread),
+ (uint8_t *)wsp + size,
+ STACK_FILL_VALUE);
#endif
chSysLock();
@@ -170,9 +173,12 @@ Thread *chThdCreateFromMemoryPool(MemoryPool *mp, tprio_t prio,
return NULL;
#if CH_DBG_FILL_THREADS
- memfill((uint8_t *)wsp, (uint8_t *)wsp + sizeof(Thread), THREAD_FILL_VALUE);
- memfill((uint8_t *)wsp + sizeof(Thread),
- (uint8_t *)wsp + mp->mp_object_size, STACK_FILL_VALUE);
+ _thread_memfill((uint8_t *)wsp,
+ (uint8_t *)wsp + sizeof(Thread),
+ THREAD_FILL_VALUE);
+ _thread_memfill((uint8_t *)wsp + sizeof(Thread),
+ (uint8_t *)wsp + mp->mp_object_size,
+ STACK_FILL_VALUE);
#endif
chSysLock();
diff --git a/os/kernel/src/chthreads.c b/os/kernel/src/chthreads.c
index 65468a3b2..4e8ae1c21 100644
--- a/os/kernel/src/chthreads.c
+++ b/os/kernel/src/chthreads.c
@@ -173,9 +173,12 @@ Thread *chThdCreateStatic(void *wsp, size_t size,
Thread *tp;
#if CH_DBG_FILL_THREADS
- memfill((uint8_t *)wsp, (uint8_t *)wsp + sizeof(Thread), THREAD_FILL_VALUE);
- memfill((uint8_t *)wsp + sizeof(Thread),
- (uint8_t *)wsp + size, STACK_FILL_VALUE);
+ _thread_memfill((uint8_t *)wsp,
+ (uint8_t *)wsp + sizeof(Thread),
+ THREAD_FILL_VALUE);
+ _thread_memfill((uint8_t *)wsp + sizeof(Thread),
+ (uint8_t *)wsp + size,
+ STACK_FILL_VALUE);
#endif
chSysLock();
chSchWakeupS(tp = chThdCreateI(wsp, size, prio, pf, arg), RDY_OK);