X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=cpu%2Farm%2Fio%2Fat91.h;h=7bdde9b9a72cd4af7cecb9d43c0b7d79a7f75027;hb=633a26b43c6a9a43ecb1d08425fbb53145e10bc1;hp=840fb59adf5aacfb33aeb0a0a6d26e52fe5f1809;hpb=2600c0780d6203575503c2f1768582c5c0865670;p=bertos.git diff --git a/cpu/arm/io/at91.h b/cpu/arm/io/at91.h index 840fb59a..7bdde9b9 100644 --- a/cpu/arm/io/at91.h +++ b/cpu/arm/io/at91.h @@ -75,29 +75,9 @@ #include -/** - * Interrupt entry point. - * Needed because AT91 uses an Interrupt Controller with auto-vectoring. - */ -#define IRQ_ENTRY() \ - asm volatile("sub lr, lr,#4" "\n\t" /* Adjust LR */ \ - "stmfd sp!,{r0-r12,lr}" "\n\t" /* Save registers on IRQ stack. */ \ - "mrs r1, spsr" "\n\t" /* Save SPSR */ \ - "stmfd sp!,{r1}" "\n\t") /* */ - -/** - * Interrupt exit. - * Needed because AT91 uses an Interrupt Controller with auto-vectoring. - */ -#define IRQ_EXIT() \ - asm volatile("ldmfd sp!, {r1}" "\n\t" /* Restore SPSR */ \ - "msr spsr_c, r1" "\n\t" /* */ \ - "ldr r0, =0xFFFFF000" "\n\t" /* End of interrupt. */ \ - "str r0, [r0, #0x130]" "\n\t" /* */ \ - "ldmfd sp!, {r0-r12, pc}^" "\n\t") /* Restore registers and return. */ +#if CPU_ARM_AT91SAM7S256 || CPU_ARM_AT91SAM7X256 + #include "at91sam7.h" -#if CPU_ARM_AT91SAM7S256 - #include "at91sam7s256.h" #else #error Missing I/O definitions for CPU. #endif