aboutsummaryrefslogtreecommitdiff
path: root/src/exceptions/data.S
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-24 09:38:08 -0700
committerChristian Cunningham <cc@localhost>2022-03-24 09:38:08 -0700
commit93bf62580a68533dc8252b9a2a055c02f34ecb67 (patch)
tree1b1ca92ebbe107a998136a1442c0dba5be885e13 /src/exceptions/data.S
parent3e64dda5d5c350cc325650133f7e64967f1efe84 (diff)
Modularized
Diffstat (limited to 'src/exceptions/data.S')
-rw-r--r--src/exceptions/data.S29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/exceptions/data.S b/src/exceptions/data.S
deleted file mode 100644
index fe33215..0000000
--- a/src/exceptions/data.S
+++ /dev/null
@@ -1,29 +0,0 @@
-.section ".text.exceptions"
-.globl data
-data:
- cpsid aif
- stmfd sp!, {r0-r12,lr}
- ldr r4, [lr, #-4]
- // Output return address
- mov r0, #80
- mov r1, #0
- mov r2, r4
- sub r2, #8
- bl draw_hex32
- // Output the data at the address
- mov r0, #80
- mov r1, #1
- ldr r2, [r4, #-8]
- bl draw_hex32
- // Output the Program Status
- mov r0, #80
- mov r1, #2
- mrs r2, spsr
- bl draw_hex32
- // Output the data-fault register
- mov r0, #80
- mov r1, #3
- mrc p15, 0, r2, c5, c0, 0 //// https://developer.arm.com/documentation/ddi0464/d/System-Control/Register-descriptions/Data-Fault-Status-Register?lang=en
- bl draw_hex32
- ldmfd sp!, {r0-r12,lr}
- subs pc, lr, #4 // Should be 8 once I can actually handle the abort