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

This commit is contained in:
Giovanni Di Sirio 2015-03-10 15:05:20 +00:00
parent 04e194c54f
commit 69c791b542
2 changed files with 4 additions and 2 deletions

View File

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

View File

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