git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7182 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
33383202ee
commit
ba16b88ca9
|
@ -309,7 +309,7 @@ struct context {
|
||||||
#define port_switch(ntp, otp) { \
|
#define port_switch(ntp, otp) { \
|
||||||
register struct intctx *r13 asm ("r13"); \
|
register struct intctx *r13 asm ("r13"); \
|
||||||
if ((stkalign_t *)(r13 - 1) < otp->p_stklimit) \
|
if ((stkalign_t *)(r13 - 1) < otp->p_stklimit) \
|
||||||
chDbgPanic("stack overflow"); \
|
chSysHalt("stack overflow"); \
|
||||||
_port_switch_thumb(ntp, otp); \
|
_port_switch_thumb(ntp, otp); \
|
||||||
}
|
}
|
||||||
#else /* !CH_DBG_ENABLE_STACK_CHECK */
|
#else /* !CH_DBG_ENABLE_STACK_CHECK */
|
||||||
|
@ -322,7 +322,7 @@ struct context {
|
||||||
#define port_switch(ntp, otp) { \
|
#define port_switch(ntp, otp) { \
|
||||||
register struct intctx *r13 asm ("r13"); \
|
register struct intctx *r13 asm ("r13"); \
|
||||||
if ((stkalign_t *)(r13 - 1) < otp->p_stklimit) \
|
if ((stkalign_t *)(r13 - 1) < otp->p_stklimit) \
|
||||||
chDbgPanic("stack overflow"); \
|
chSysHalt("stack overflow"); \
|
||||||
_port_switch_arm(ntp, otp); \
|
_port_switch_arm(ntp, otp); \
|
||||||
}
|
}
|
||||||
#else /* !CH_DBG_ENABLE_STACK_CHECK */
|
#else /* !CH_DBG_ENABLE_STACK_CHECK */
|
||||||
|
|
Loading…
Reference in New Issue