diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-02-14 18:20:33 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-02-14 18:20:33 +0000 |
commit | fa9b36aff3676a897503a359314d08db8fc5a09d (patch) | |
tree | d7cbfc124faa41fa4ca14c270a178139931df8ad /src/chthreads.c | |
parent | 50708b39516b77397dc76195ab963aa5909e48b0 (diff) | |
download | ChibiOS-fa9b36aff3676a897503a359314d08db8fc5a09d.tar.gz ChibiOS-fa9b36aff3676a897503a359314d08db8fc5a09d.tar.bz2 ChibiOS-fa9b36aff3676a897503a359314d08db8fc5a09d.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@766 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chthreads.c')
-rw-r--r-- | src/chthreads.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chthreads.c b/src/chthreads.c index 58f2b46d5..e91c4c18f 100644 --- a/src/chthreads.c +++ b/src/chthreads.c @@ -55,7 +55,7 @@ Thread *init_thread(Thread *tp, tprio_t prio) { return tp; } -#if CH_USE_DEBUG +#if CH_DBG_FILL_THREADS static void memfill(uint8_t *p, uint32_t n, uint8_t v) { while (n) @@ -91,7 +91,7 @@ Thread *chThdInit(void *workspace, size_t wsize, chDbgAssert((wsize >= THD_WA_SIZE(0)) && (prio <= HIGHPRIO) && (workspace != NULL) && (pf != NULL), "chthreads.c, chThdInit()"); -#if CH_USE_DEBUG +#if CH_DBG_FILL_THREADS memfill(workspace, wsize, MEM_FILL_PATTERN); #endif SETUP_CONTEXT(workspace, wsize, pf, arg); @@ -327,7 +327,7 @@ msg_t chThdWait(Thread *tp) { msg_t msg; chSysLock(); - chDbgAssert((tp != NULL) && (tp != currp) && (tp->p_waiting != NULL), + chDbgAssert((tp != NULL) && (tp != currp) && (tp->p_waiting == NULL), "chthreads.c, chThdWait()"); if (tp->p_state != PREXIT) { tp->p_waiting = currp; |