From 68478311d11406e9452ae7fc2cf6e7405fb9c4d6 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Sat, 28 Dec 2019 21:57:00 +0100 Subject: simple interrupt handling functions declarations, without attributes --- interrupts.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'interrupts.c') 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"); -- cgit v1.2.3