aboutsummaryrefslogtreecommitdiffstats
path: root/ports
diff options
context:
space:
mode:
Diffstat (limited to 'ports')
-rw-r--r--ports/ARM7/chcore.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ports/ARM7/chcore.h b/ports/ARM7/chcore.h
index 1c90eff99..b1f5505d3 100644
--- a/ports/ARM7/chcore.h
+++ b/ports/ARM7/chcore.h
@@ -119,11 +119,13 @@ extern "C" {
#endif /* !REENTRANT_LOCKS */
#endif /* THUMB */
+#ifndef INT_REQUIRED_STACK
#ifdef THUMB
#define INT_REQUIRED_STACK 0x10
#else /* !THUMB */
-#define INT_REQUIRED_STACK 0
+#define INT_REQUIRED_STACK 0x10
#endif /* !THUMB */
+#endif
#define STACK_ALIGN(n) ((((n) - 1) | sizeof(stkalign_t)) + 1)