diff options
Diffstat (limited to 'demos/ARM7-AT91SAM7X-GCC/board.c')
-rw-r--r-- | demos/ARM7-AT91SAM7X-GCC/board.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/demos/ARM7-AT91SAM7X-GCC/board.c b/demos/ARM7-AT91SAM7X-GCC/board.c index 3a5539587..8d0851329 100644 --- a/demos/ARM7-AT91SAM7X-GCC/board.c +++ b/demos/ARM7-AT91SAM7X-GCC/board.c @@ -25,10 +25,14 @@ extern void FiqHandler(void);
-__attribute__((interrupt("IRQ")))
+__attribute__((naked))
static void SpuriousHandler(void) {
+ chSysIRQEnterI();
+
AT91C_BASE_AIC->AIC_EOICR = (AT91_REG)AT91C_BASE_AIC;
+
+ chSysIRQExitI();
}
/*
|