git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7142 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2014-08-06 14:22:26 +00:00
parent 4df2f81372
commit b02dcc6d42
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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