diff --git a/docs/ch.txt b/docs/ch.txt index 23d1ec096..884eb1f11 100644 --- a/docs/ch.txt +++ b/docs/ch.txt @@ -206,6 +206,29 @@ */ /** @} */ +/** + * @defgroup ARM7CONF Configuration Options + * @{ + *

+ * The ARM7 port allows some architecture-specific configurations: + *

+ *

+ * @ingroup ARM7 + */ +/** @} */ + /** * @defgroup LPC214x LPC214x Support * @{ 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)