X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=cpu%2Farm%2Fdrv%2Fsysirq_at91.c;h=281c7963f8afdbee1fb0fc472ca961a3171cd921;hb=139052d58a99cc47e0e2ac6b897a0c26a0105c2a;hp=33e6b0cd21fb56de666624566f3ba3acb0532d2a;hpb=dda23b5d62a3e948f7fb9be28b33fe7d3c473ebd;p=bertos.git diff --git a/cpu/arm/drv/sysirq_at91.c b/cpu/arm/drv/sysirq_at91.c index 33e6b0cd..281c7963 100644 --- a/cpu/arm/drv/sysirq_at91.c +++ b/cpu/arm/drv/sysirq_at91.c @@ -94,10 +94,9 @@ STATIC_ASSERT(countof(sysirq_tab) == SYSIRQ_CNT); * various sources (system timer, etc..) and calls * the corresponding handler. */ -static void sysirq_dispatcher(void) __attribute__ ((naked)); +static void sysirq_dispatcher(void) __attribute__ ((interrupt)); static void sysirq_dispatcher(void) { - IRQ_ENTRY(); for (unsigned i = 0; i < countof(sysirq_tab); i++) { if (sysirq_tab[i].enabled @@ -105,7 +104,8 @@ static void sysirq_dispatcher(void) sysirq_tab[i].handler(); } - IRQ_EXIT(); + /* Inform hw that we have served the IRQ */ + AIC_EOICR = 0; } #define SYSIRQ_PRIORITY 0 ///< default priority for system irqs.