diff options
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
|