aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/ports/ARMCMx/chcore_v6m.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-09-05 14:54:24 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-09-05 14:54:24 +0000
commit15a54ae359d342b296b7740dcfaf0580d606b3c6 (patch)
treeb385117ee6197a6f9efcdfe82ad687c801c61bed /os/rt/ports/ARMCMx/chcore_v6m.h
parent986a9d1db14a5d2d4621bd44ece5fd2cfb3482cf (diff)
downloadChibiOS-15a54ae359d342b296b7740dcfaf0580d606b3c6.tar.gz
ChibiOS-15a54ae359d342b296b7740dcfaf0580d606b3c6.tar.bz2
ChibiOS-15a54ae359d342b296b7740dcfaf0580d606b3c6.zip
Nil working on M3/M4.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6265 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/ports/ARMCMx/chcore_v6m.h')
-rw-r--r--os/rt/ports/ARMCMx/chcore_v6m.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/rt/ports/ARMCMx/chcore_v6m.h b/os/rt/ports/ARMCMx/chcore_v6m.h
index 62dde2b30..fc53c0202 100644
--- a/os/rt/ports/ARMCMx/chcore_v6m.h
+++ b/os/rt/ports/ARMCMx/chcore_v6m.h
@@ -264,7 +264,7 @@ struct context {
#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); \
}