From 71f174d00dcd678fa9da5acea8e1454f2417810c Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 2 Apr 2016 16:47:14 +0000 Subject: Fixed stack limit conditions in RT4. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9224 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/nil/src/ch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'os/nil/src') diff --git a/os/nil/src/ch.c b/os/nil/src/ch.c index d527fc60f..3a5a3b8e0 100644 --- a/os/nil/src/ch.c +++ b/os/nil/src/ch.c @@ -234,7 +234,7 @@ void chSysInit(void) { tcp = nil_thd_configs; while (tp < &nil.threads[CH_CFG_NUM_THREADS]) { #if CH_DBG_ENABLE_STACK_CHECK - tp->stklimit = (stkalign_t *)tcp->wbase; + tp->wabase = (stkalign_t *)tcp->wbase; #endif /* Port dependent thread initialization.*/ @@ -250,7 +250,7 @@ void chSysInit(void) { #if CH_DBG_ENABLE_STACK_CHECK /* The idle thread is a special case because its stack is set up by the runtime environment.*/ - tp->stklimit = THD_IDLE_BASE; + tp->wabase = THD_IDLE_BASE; #endif /* Interrupts partially enabled. It is equivalent to entering the -- cgit v1.2.3