aboutsummaryrefslogtreecommitdiff
path: root/kernel/exceptions/prefetch.S
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/exceptions/prefetch.S')
-rw-r--r--kernel/exceptions/prefetch.S13
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/exceptions/prefetch.S b/kernel/exceptions/prefetch.S
new file mode 100644
index 0000000..59674bd
--- /dev/null
+++ b/kernel/exceptions/prefetch.S
@@ -0,0 +1,13 @@
+.section ".text.exceptions"
+.globl prefetch
+prefetch:
+ cpsid aif
+ stmfd sp!, {r0-r12,lr}
+ ldr r4, [lr, #-4]
+ // Output return address
+ mov r0, #98
+ mov r1, #0
+ mov r2, r4
+ bl draw_hex32
+ ldmfd sp!, {r0-r12,lr}
+ subs pc, lr, #4