diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-04-02 16:47:14 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-04-02 16:47:14 +0000 |
commit | 71f174d00dcd678fa9da5acea8e1454f2417810c (patch) | |
tree | 53f5b106f790e0797545ac7b91af2e0a21886720 /os/nil | |
parent | e8f67437d0007a2a4cd5a05afbd525a1960c188c (diff) | |
download | ChibiOS-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')
-rw-r--r-- | os/nil/include/ch.h | 2 | ||||
-rw-r--r-- | os/nil/src/ch.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/os/nil/include/ch.h b/os/nil/include/ch.h index dd548ab20..e517b9551 100644 --- a/os/nil/include/ch.h +++ b/os/nil/include/ch.h @@ -492,7 +492,7 @@ struct nil_thread { eventmask_t epmask; /**< @brief Pending events mask. */
#endif
#if (CH_DBG_ENABLE_STACK_CHECK == TRUE) || defined(__DOXYGEN__)
- stkalign_t *stklimit; /**< @brief Thread stack boundary. */
+ stkalign_t *wabase; /**< @brief Thread stack boundary. */
#endif
/* Optional extra fields.*/
CH_CFG_THREAD_EXT_FIELDS
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
|