From 93c5d059c08a038c64cef7729d6109b096c6fb23 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 11 Mar 2009 21:53:55 +0000 Subject: Fixed bug 2683965, minor doc fixes. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@833 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chthreads.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/chthreads.c') diff --git a/src/chthreads.c b/src/chthreads.c index 5a7a98943..ae63c2b86 100644 --- a/src/chthreads.c +++ b/src/chthreads.c @@ -94,12 +94,12 @@ Thread *chThdInit(void *workspace, size_t wsize, (prio <= HIGHPRIO) && (pf != NULL), "chThdInit"); #if CH_DBG_FILL_THREADS - memfill(workspace, - (uint8_t)workspace + sizeof(Thread), - THREAD_FILL_VALUE); - memfill((uint8_t)workspace + sizeof(Thread), - (uint8_t)workspace + wsize - STACK_FILL_VALUE); + memfill((uint8_t *)workspace, + (uint8_t *)workspace + sizeof(Thread), + THREAD_FILL_VALUE); + memfill((uint8_t *)workspace + sizeof(Thread), + (uint8_t *)workspace + wsize, + STACK_FILL_VALUE); #endif SETUP_CONTEXT(workspace, wsize, pf, arg); return init_thread(tp, prio); -- cgit v1.2.3