aboutsummaryrefslogtreecommitdiff
path: root/src/boot.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot.S')
-rw-r--r--src/boot.S14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/boot.S b/src/boot.S
index f0caebc..17cc794 100644
--- a/src/boot.S
+++ b/src/boot.S
@@ -14,7 +14,7 @@ reset:
// set vector address.
ldr r0, =vector
- mcR P15, 0, r0, c12, c0, 0
+ mcr p15, 0, r0, c12, c0, 0
// save cpsr.
mrs r0, cpsr
@@ -74,6 +74,16 @@ disable_irq:
cpsid i
bx lr
+.globl enable_fiq
+enable_fiq:
+ cpsie i
+ bx lr
+
+.globl disable_fiq
+disable_fiq:
+ cpsid f
+ bx lr
+
.align 5
vector:
ldr pc, reset_handler
@@ -93,6 +103,8 @@ data_handler: .word io_halt
unused_handler: .word io_halt
irq_handler: .word irq
fiq_handler: .word io_halt
+//irq_handler: .word io_halt
+//fiq_handler: .word irq
.global a_irq_handler
a_irq_handler: