From aa8ef7e8e770734aee0cfcb024cb5db8e51c0639 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 5 Jul 2008 07:11:12 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@334 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chthreads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/chthreads.c b/src/chthreads.c index d12bced10..338a65d52 100644 --- a/src/chthreads.c +++ b/src/chthreads.c @@ -97,8 +97,8 @@ Thread *chThdCreate(tprio_t prio, tmode_t mode, void *workspace, #ifdef CH_USE_DEBUG memfill(workspace, wsize, MEM_FILL_PATTERN); #endif - init_thread(prio, mode, tp); SETUP_CONTEXT(workspace, wsize, pf, arg); + init_thread(prio, mode, tp); #ifdef CH_USE_RESUME if (tp->p_flags & P_SUSPENDED) tp->p_state = PRSUSPENDED; @@ -137,8 +137,8 @@ Thread *chThdCreateFast(tprio_t prio, void *workspace, #ifdef CH_USE_DEBUG memfill(workspace, wsize, MEM_FILL_PATTERN); #endif - init_thread(prio, 0, tp); SETUP_CONTEXT(workspace, wsize, pf, NULL); + init_thread(prio, 0, tp); chSysLock(); chSchWakeupS(tp, RDY_OK); chSysUnlock(); -- cgit v1.2.3