aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/ports/e200
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-04-02 16:47:14 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-04-02 16:47:14 +0000
commit71f174d00dcd678fa9da5acea8e1454f2417810c (patch)
tree53f5b106f790e0797545ac7b91af2e0a21886720 /os/common/ports/e200
parente8f67437d0007a2a4cd5a05afbd525a1960c188c (diff)
downloadChibiOS-71f174d00dcd678fa9da5acea8e1454f2417810c.tar.gz
ChibiOS-71f174d00dcd678fa9da5acea8e1454f2417810c.tar.bz2
ChibiOS-71f174d00dcd678fa9da5acea8e1454f2417810c.zip
Fixed stack limit conditions in RT4.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9224 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/common/ports/e200')
-rw-r--r--os/common/ports/e200/chcore.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/common/ports/e200/chcore.h b/os/common/ports/e200/chcore.h
index d031f1c28..453f955bb 100644
--- a/os/common/ports/e200/chcore.h
+++ b/os/common/ports/e200/chcore.h
@@ -392,7 +392,7 @@ struct port_context {
#else
#define port_switch(ntp, otp) { \
register struct port_intctx *sp asm ("%r1"); \
- if ((stkalign_t *)(sp - 1) < otp->stklimit) \
+ if ((stkalign_t *)(sp - 1) < otp->wabase) \
chSysHalt("stack overflow"); \
_port_switch(ntp, otp); \
}