diff options
author | Christian Cunningham <cc@localhost> | 2022-03-24 09:38:08 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-03-24 09:38:08 -0700 |
commit | 93bf62580a68533dc8252b9a2a055c02f34ecb67 (patch) | |
tree | 1b1ca92ebbe107a998136a1442c0dba5be885e13 /kernel/exceptions/prefetch.S | |
parent | 3e64dda5d5c350cc325650133f7e64967f1efe84 (diff) |
Modularized
Diffstat (limited to 'kernel/exceptions/prefetch.S')
-rw-r--r-- | kernel/exceptions/prefetch.S | 13 |
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 |