Fixed an harmless warning under rare conditions.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14867 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
e7c017129e
commit
5aae751992
|
@ -456,7 +456,7 @@ struct port_context {
|
||||||
#else
|
#else
|
||||||
#define port_switch(ntp, otp) do { \
|
#define port_switch(ntp, otp) do { \
|
||||||
struct port_intctx *r13 = (struct port_intctx *)__get_PSP(); \
|
struct port_intctx *r13 = (struct port_intctx *)__get_PSP(); \
|
||||||
if ((stkalign_t *)(r13 - 1) < (otp)->wabase) { \
|
if ((stkalign_t *)(void *)(r13 - 1) < (otp)->wabase) { \
|
||||||
chSysHalt("stack overflow"); \
|
chSysHalt("stack overflow"); \
|
||||||
} \
|
} \
|
||||||
__port_switch(ntp, otp); \
|
__port_switch(ntp, otp); \
|
||||||
|
|
|
@ -415,7 +415,7 @@ struct port_context {
|
||||||
#else
|
#else
|
||||||
#define port_switch(ntp, otp) do { \
|
#define port_switch(ntp, otp) do { \
|
||||||
struct port_intctx *r13 = (struct port_intctx *)__get_PSP(); \
|
struct port_intctx *r13 = (struct port_intctx *)__get_PSP(); \
|
||||||
if ((stkalign_t *)(r13 - 1) < (otp)->wabase) { \
|
if ((stkalign_t *)(void *)(r13 - 1) < (otp)->wabase) { \
|
||||||
chSysHalt("stack overflow"); \
|
chSysHalt("stack overflow"); \
|
||||||
} \
|
} \
|
||||||
__port_switch(ntp, otp); \
|
__port_switch(ntp, otp); \
|
||||||
|
|
|
@ -699,7 +699,7 @@ struct port_context {
|
||||||
#if PORT_ENABLE_GUARD_PAGES == FALSE
|
#if PORT_ENABLE_GUARD_PAGES == FALSE
|
||||||
#define port_switch(ntp, otp) do { \
|
#define port_switch(ntp, otp) do { \
|
||||||
struct port_intctx *r13 = (struct port_intctx *)__get_PSP(); \
|
struct port_intctx *r13 = (struct port_intctx *)__get_PSP(); \
|
||||||
if ((stkalign_t *)(r13 - 1) < (otp)->wabase) { \
|
if ((stkalign_t *)(void *)(r13 - 1) < (otp)->wabase) { \
|
||||||
chSysHalt("stack overflow"); \
|
chSysHalt("stack overflow"); \
|
||||||
} \
|
} \
|
||||||
__port_switch(ntp, otp); \
|
__port_switch(ntp, otp); \
|
||||||
|
|
|
@ -437,7 +437,7 @@ struct port_context {
|
||||||
#else
|
#else
|
||||||
#define port_switch(ntp, otp) { \
|
#define port_switch(ntp, otp) { \
|
||||||
register struct port_intctx *sp asm ("%r1"); \
|
register struct port_intctx *sp asm ("%r1"); \
|
||||||
if ((stkalign_t *)(sp - 1) < otp->wabase) \
|
if ((stkalign_t *)(void *)(sp - 1) < otp->wabase) \
|
||||||
chSysHalt("stack overflow"); \
|
chSysHalt("stack overflow"); \
|
||||||
_port_switch(ntp, otp); \
|
_port_switch(ntp, otp); \
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue