aboutsummaryrefslogtreecommitdiff
path: root/src/exceptions/prefetch.S
blob: 5166d00c7d58691003013ae41004ca6fcfc17f1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.section ".text.exceptions"
.globl prefetch
prefetch:
	cpsid aif
	stmfd sp!, {r0-r12,lr}
	mov r4, lr
	mov r0, #98
	mov r1, #0
	ldr r2, =prefetch_msg
	bl draw_string
	// Output return address
	mov r0, #98
	mov r1, #1
	mov r2, r4
	bl draw_hex32
	ldmfd sp!, {r0-r12,lr}
	subs pc, lr, #4

.section .data
prefetch_msg:	.asciz "Prefetch Handler"