From 6543545b048b7059941b0f6680227ec4ce26535e Mon Sep 17 00:00:00 2001 From: hackbard Date: Sat, 15 Sep 2007 02:58:42 +0200 Subject: [PATCH] the interrupt routines --- betty/interrupts.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ betty/interrupts.h | 20 ++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 betty/interrupts.c create mode 100644 betty/interrupts.h diff --git a/betty/interrupts.c b/betty/interrupts.c new file mode 100644 index 0000000..fa1fcc1 --- /dev/null +++ b/betty/interrupts.c @@ -0,0 +1,45 @@ +/* + * interrupts.c - arm exception handling + * + * author: hackbard@hackdaworld.org + * + */ + +#include "interrupts.h" + +/* + * functions + */ + +/* + * the actual exception handlers (as defined in startup.s) + */ + +// reset +void interrupt_handler_reset(void) { +} + +// undefined instruction +void interrupt_handler_undef_instruction(void) { +} + +// software interrupt +void interrupt_handler_soft_ir(void) { +} + +// prefetch abort +void interrupt_handler_prefetch_abort(void) { +} + +// data abort +void interrupt_handler_data_abort(void) { +} + +// irq +void interrupt_handler_irq(void) { +} + +// fiq +void interrupt_handler_fiq(void) { +} + diff --git a/betty/interrupts.h b/betty/interrupts.h new file mode 100644 index 0000000..9c1b8aa --- /dev/null +++ b/betty/interrupts.h @@ -0,0 +1,20 @@ +/* + * interrupts.h - arm exception handling header file + * + * author: hackbard@hackdaworld.org + * + */ + +#include "lpc2xxx.h" +#include "types.h" + +/* function prototypes */ + +void interrupt_handler_reset(void); +void interrupt_handler_undef_instruction(void); +void interrupt_handler_soft_ir(void); +void interrupt_handler_prefetch_abort(void); +void interrupt_handler_data_abort(void); +void interrupt_handler_irq(void); +void interrupt_handler_fiq(void); + -- 2.39.2