From 69c791b542c1e1691b3b8737777aa595fde03e16 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 10 Mar 2015 15:05:20 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7750 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/ports/ARMCMx/chcore_v6m.h | 3 ++- os/rt/ports/ARMCMx/chcore_v7m.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/os/rt/ports/ARMCMx/chcore_v6m.h b/os/rt/ports/ARMCMx/chcore_v6m.h index 3ac78b926..9750308d4 100644 --- a/os/rt/ports/ARMCMx/chcore_v6m.h +++ b/os/rt/ports/ARMCMx/chcore_v6m.h @@ -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 diff --git a/os/rt/ports/ARMCMx/chcore_v7m.h b/os/rt/ports/ARMCMx/chcore_v7m.h index d6befaf72..2e49c1895 100644 --- a/os/rt/ports/ARMCMx/chcore_v7m.h +++ b/os/rt/ports/ARMCMx/chcore_v7m.h @@ -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 -- cgit v1.2.3