aboutsummaryrefslogtreecommitdiffstats
path: root/os/nil/src/ch.c
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-04-02 16:47:14 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-04-02 16:47:14 +0000
commit71f174d00dcd678fa9da5acea8e1454f2417810c (patch)
tree53f5b106f790e0797545ac7b91af2e0a21886720 /os/nil/src/ch.c
parente8f67437d0007a2a4cd5a05afbd525a1960c188c (diff)
downloadChibiOS-71f174d00dcd678fa9da5acea8e1454f2417810c.tar.gz
ChibiOS-71f174d00dcd678fa9da5acea8e1454f2417810c.tar.bz2
ChibiOS-71f174d00dcd678fa9da5acea8e1454f2417810c.zip
Fixed stack limit conditions in RT4.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9224 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/nil/src/ch.c')
-rw-r--r--os/nil/src/ch.c4
1 files changed, 2 insertions, 2 deletions
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