diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-08-06 14:22:26 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-08-06 14:22:26 +0000 |
commit | b02dcc6d42f1c2c00b4e0841872b0c572aa10ee9 (patch) | |
tree | 3a055db4598cd0379828272f1e23e9debc9e57cf /os/nil | |
parent | 4df2f81372b3f87b0e9bc254cec48d864e3a18a9 (diff) | |
download | ChibiOS-b02dcc6d42f1c2c00b4e0841872b0c572aa10ee9.tar.gz ChibiOS-b02dcc6d42f1c2c00b4e0841872b0c572aa10ee9.tar.bz2 ChibiOS-b02dcc6d42f1c2c00b4e0841872b0c572aa10ee9.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7142 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/nil')
-rw-r--r-- | os/nil/include/nil.h | 2 | ||||
-rw-r--r-- | os/nil/ports/e200/nilcore.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/os/nil/include/nil.h b/os/nil/include/nil.h index 29ac77b3b..f815b2153 100644 --- a/os/nil/include/nil.h +++ b/os/nil/include/nil.h @@ -256,7 +256,7 @@ typedef struct nil_thread thread_t; "be zero or greater than one"
#endif
-#if NIL_CFG_ENABLE_ASSERTS
+#if NIL_CFG_ENABLE_ASSERTS || NIL_CFG_ENABLE_STACK_CHECK
#define NIL_DBG_ENABLED TRUE
#else
#define NIL_DBG_ENABLED FALSE
diff --git a/os/nil/ports/e200/nilcore.h b/os/nil/ports/e200/nilcore.h index 82f04bf1a..2fbfbf911 100644 --- a/os/nil/ports/e200/nilcore.h +++ b/os/nil/ports/e200/nilcore.h @@ -314,7 +314,7 @@ struct port_intctx { #define port_switch(ntp, otp) { \
register struct port_intctx *sp asm ("%r1"); \
if ((stkalign_t *)(sp - 1) < otp->stklim) \
- chDbgPanic("stack overflow"); \
+ chSysHalt("stack overflow"); \
_port_switch(ntp, otp); \
}
#endif
|