From aa2eb80fdb2e4e3b6eedacb8426e40db255cbe68 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 29 Dec 2008 12:12:53 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@558 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- ports/AVR/chcore.h | 4 +++- ports/MSP430/chcore.h | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'ports') diff --git a/ports/AVR/chcore.h b/ports/AVR/chcore.h index 210b4c366..ddeaf33ef 100644 --- a/ports/AVR/chcore.h +++ b/ports/AVR/chcore.h @@ -104,7 +104,9 @@ typedef struct { tp->p_ctx.sp->pch = (int)threadstart; \ } -#define INT_REQUIRED_STACK 8 +#ifndef INT_REQUIRED_STACK +#define INT_REQUIRED_STACK 32 +#endif #define STACK_ALIGN(n) ((((n) - 1) | sizeof(stkalign_t)) + 1) diff --git a/ports/MSP430/chcore.h b/ports/MSP430/chcore.h index 996f88912..bf8e0d82d 100644 --- a/ports/MSP430/chcore.h +++ b/ports/MSP430/chcore.h @@ -81,7 +81,9 @@ typedef struct { #define IDLE_THREAD_STACK_SIZE 0 +#ifndef INT_REQUIRED_STACK #define INT_REQUIRED_STACK 32 +#endif #define STACK_ALIGN(n) ((((n) - 1) | sizeof(stkalign_t)) + 1) -- cgit v1.2.3