1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
.section .vectors
.align 12 // Align to vector table size (0x800)
.globl el1_vectors
el1_vectors:
.word 0 // Add padding to force the below alignment
.align 9 // Force these vectors to 0x400 alignment
el1_sync_exception_current:
stp x30, x2, [sp, #-16]!
stp x0, x1, [sp, #-16]!
mov x2, x0;
mrs x0, esr_el1
mov x1, #0xffffff
and x1, x1, x0
lsr x0, x0, #26
bl el1_handle_exception
ldp x0, x1, [sp], #16
ldp x30, x2, [sp], #16
eret
.align 10 // Force these vectors to 0x400 alignment
el1_sync_exception_lower64:
stp x30, x2, [sp, #-16]!
stp x0, x1, [sp, #-16]!
mov x2, x0;
mrs x0, esr_el1
mov x1, #0xffffff
and x1, x1, x0
lsr x0, x0, #26
bl el1_handle_exception
ldp x0, x1, [sp], #16
ldp x30, x2, [sp], #16
eret
.align 7
el1_serr_exception:
b el1_serr_exception
.align 7
el1_irq_exception:
b el1_irq_exception
.align 7
el1_fiq_exception:
b el1_fiq_exception
.end
|