aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-08-06 14:22:26 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-08-06 14:22:26 +0000
commitb02dcc6d42f1c2c00b4e0841872b0c572aa10ee9 (patch)
tree3a055db4598cd0379828272f1e23e9debc9e57cf
parent4df2f81372b3f87b0e9bc254cec48d864e3a18a9 (diff)
downloadChibiOS-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
-rw-r--r--os/nil/include/nil.h2
-rw-r--r--os/nil/ports/e200/nilcore.h2
-rw-r--r--os/rt/ports/e200/chcore.h2
3 files changed, 3 insertions, 3 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
diff --git a/os/rt/ports/e200/chcore.h b/os/rt/ports/e200/chcore.h
index 0c3ae9801..7f97beeff 100644
--- a/os/rt/ports/e200/chcore.h
+++ b/os/rt/ports/e200/chcore.h
@@ -356,7 +356,7 @@ struct context {
#define port_switch(ntp, otp) { \
register struct port_intctx *sp asm ("%r1"); \
if ((stkalign_t *)(sp - 1) < otp->p_stklimit) \
- chDbgPanic("stack overflow"); \
+ chSysHalt("stack overflow"); \
_port_switch(ntp, otp); \
}
#endif