diff options
author | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-28 21:57:00 +0100 |
---|---|---|
committer | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-28 21:57:00 +0100 |
commit | 68478311d11406e9452ae7fc2cf6e7405fb9c4d6 (patch) | |
tree | 08a2bef1ce3cb69d637a02fc80f4795b03b76f95 /interrupts.c | |
parent | 700f4c412d42c9b9811269045c0e363a0331bba9 (diff) | |
download | rpi-MMU-example-68478311d11406e9452ae7fc2cf6e7405fb9c4d6.tar.gz rpi-MMU-example-68478311d11406e9452ae7fc2cf6e7405fb9c4d6.zip |
simple interrupt handling functions declarations, without attributes
Diffstat (limited to 'interrupts.c')
-rw-r--r-- | interrupts.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/interrupts.c b/interrupts.c index 1b0590a..1a0150e 100644 --- a/interrupts.c +++ b/interrupts.c @@ -15,10 +15,7 @@ void reset_handler(void) while(1); } -void -__attribute__((interrupt("UNDEF"))) -__attribute__((section(".interrupts.text"))) -undefined_instruction_vector(void) +void undefined_instruction_vector(void) { uart_puts("Undefined instruction occured"); while( 1 ) @@ -34,9 +31,7 @@ void supervisor_call_handler(void) while(1); } -void -__attribute__((interrupt("ABORT"))) -abort_handler(void) +void abort_handler(void) { uart_puts("re-entered system\n\r"); |