aboutsummaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2021-12-21 21:21:21 -0800
committerChristian Cunningham <cc@localhost>2021-12-21 21:21:21 -0800
commitd3d87c5fd8096c2b5730ba9664635af560505fd7 (patch)
tree52d22f3610037874592377d70be069265c621a1f /src/cpu
parente43a2696a9eb948f7e08674da766d8971bd4d296 (diff)
Remove dis/enable IRQ
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/irq.S10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cpu/irq.S b/src/cpu/irq.S
index 8050a99..c434deb 100644
--- a/src/cpu/irq.S
+++ b/src/cpu/irq.S
@@ -1,6 +1,6 @@
a_irq_handler:
push {lr}
- bl disable_irq
+ cpsid i // Disable IRQ
// r2 = CORE0_INTERRUPT_SOURCE
// if r2 & 0b100000000
mov r2, #0x40000000
@@ -45,7 +45,7 @@ a_irq_handler.ttimer:
bl uart_char
ldr r0, =imsg
bl uart_string
- bl enable_irq
+ cpsie i // Enable IRQ
pop {pc}
a_irq_handler.timer:
@@ -59,18 +59,18 @@ a_irq_handler.timer:
//ldr r0, =imsg
//bl uart_string
a_irq_handler.exit:
- bl enable_irq
+ cpsie i // Enable IRQ
pop {pc}
.globl a_fiq_handler
a_fiq_handler:
push {lr}
- bl disable_fiq
+ cpsie f // Disable FIQ
bl c_timer
ldr r0, =fmsg
bl uart_string
a_fiq_handler.exit:
- bl enable_fiq
+ cpsie f // Enable FIQ
pop {pc}
.section ".data"