git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7142 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
4df2f81372
commit
b02dcc6d42
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue