git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7750 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
04e194c54f
commit
69c791b542
|
@ -251,8 +251,9 @@ struct port_intctx {
|
|||
#else
|
||||
#define port_switch(ntp, otp) { \
|
||||
struct port_intctx *r13 = (struct port_intctx *)__get_PSP(); \
|
||||
if ((stkalign_t *)(r13 - 1) < (otp)->p_stklimit) \
|
||||
if ((stkalign_t *)(r13 - 1) < (otp)->p_stklimit) { \
|
||||
chSysHalt("stack overflow"); \
|
||||
} \
|
||||
_port_switch(ntp, otp); \
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -343,8 +343,9 @@ struct port_intctx {
|
|||
#else
|
||||
#define port_switch(ntp, otp) { \
|
||||
struct port_intctx *r13 = (struct port_intctx *)__get_PSP(); \
|
||||
if ((stkalign_t *)(r13 - 1) < (otp)->p_stklimit) \
|
||||
if ((stkalign_t *)(r13 - 1) < (otp)->p_stklimit) { \
|
||||
chSysHalt("stack overflow"); \
|
||||
} \
|
||||
_port_switch(ntp, otp); \
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue