Skip to content

Commit 8cbd9c7

Browse files
carlocaionenashif
authored andcommitted
aarch64: userspace: Add missing entries in vector table
To support exceptions taken in EL0. Signed-off-by: Carlo Caione <[email protected]>
1 parent 1347fdb commit 8cbd9c7

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

arch/arm/core/aarch64/vector_table.S

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,19 +157,26 @@ SECTION_SUBSEC_FUNC(exc_vector_table,_vector_table_section,_vector_table)
157157

158158
/* Lower EL using AArch64 / Synchronous */
159159
.align 7
160-
b .
160+
z_arm64_enter_exc x0, x1
161+
b z_arm64_sync_exc
161162

162163
/* Lower EL using AArch64 / IRQ */
163164
.align 7
164-
b .
165+
z_arm64_enter_exc x0, x1
166+
#ifdef CONFIG_GEN_SW_ISR_TABLE
167+
b _isr_wrapper
168+
#else
169+
b z_irq_spurious
170+
#endif
165171

166172
/* Lower EL using AArch64 / FIQ */
167173
.align 7
168174
b .
169175

170176
/* Lower EL using AArch64 / SError */
171177
.align 7
172-
b .
178+
z_arm64_enter_exc x0, x1
179+
b z_arm64_serror
173180

174181
/* Lower EL using AArch32 / Synchronous */
175182
.align 7

0 commit comments

Comments
 (0)