From a1f49718aee378fa075303c86106309091d56b80 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Mon, 31 Jan 2022 19:05:50 -0700 Subject: Break exceptions off to own files --- src/exceptions/irq.S | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/exceptions/irq.S (limited to 'src/exceptions/irq.S') diff --git a/src/exceptions/irq.S b/src/exceptions/irq.S new file mode 100644 index 0000000..025fc41 --- /dev/null +++ b/src/exceptions/irq.S @@ -0,0 +1,8 @@ +.section ".text.exceptions" +.globl irq +irq: + cpsid aif + push {r0,r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,lr} + bl c_irq_handler + pop {r0,r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,lr} + subs pc, lr, #4 -- cgit v1.2.1