aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/ports/ARMCMx/compilers/IAR/chcoreasm_v7m.s
diff options
context:
space:
mode:
Diffstat (limited to 'os/common/ports/ARMCMx/compilers/IAR/chcoreasm_v7m.s')
-rw-r--r--os/common/ports/ARMCMx/compilers/IAR/chcoreasm_v7m.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/common/ports/ARMCMx/compilers/IAR/chcoreasm_v7m.s b/os/common/ports/ARMCMx/compilers/IAR/chcoreasm_v7m.s
index b0de85ce1..6385ac514 100644
--- a/os/common/ports/ARMCMx/compilers/IAR/chcoreasm_v7m.s
+++ b/os/common/ports/ARMCMx/compilers/IAR/chcoreasm_v7m.s
@@ -64,7 +64,7 @@ ICSR_PENDSVSET SET 0x10000000
EXTERN chThdExit
EXTERN chSysHalt
EXTERN chSchDoReschedule
-#if CH_DBG_ENABLE_STACK_CHECK || PORT_ENABLE_GUARD_PAGES
+#if CH_DBG_ENABLE_STACK_CHECK && PORT_ENABLE_GUARD_PAGES
EXTERN _port_set_region
#endif
#if CH_DBG_STATISTICS
@@ -110,7 +110,7 @@ _port_switch:
*/
PUBLIC _port_thread_start
_port_thread_start:
-#if CH_DBG_ENABLE_STACK_CHECK || PORT_ENABLE_GUARD_PAGES
+#if CH_DBG_ENABLE_STACK_CHECK && PORT_ENABLE_GUARD_PAGES
bl _port_set_region
#endif
#if CH_DBG_SYSTEM_STATE_CHECK