1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:27:43 +00:00

Kernel: Add more exception handlers for aarch64 Kernel

The aarch64 Kernel runs with SP_EL0, thus exceptions that happen can now
be handled.
This commit is contained in:
Timon Kruiper 2022-05-10 22:43:53 +02:00 committed by Linus Groh
parent 06432719fd
commit e43fdcc77e

View file

@ -106,10 +106,10 @@
.align 11
vector_table_el1:
// Exceptions taken from Current EL, with SP_EL0
unimplemented_entry
unimplemented_entry
unimplemented_entry
unimplemented_entry
table_entry synchronous_current_elsp_el0
table_entry irq_current_elsp_el0
table_entry fiq_current_elsp_el0
table_entry system_error_current_elsp_el0
// Exceptions taken from Current EL, with SP_ELx, x>0
table_entry synchronous_current_elsp_elx
@ -152,3 +152,27 @@ system_error_current_elsp_elx:
bl exception_common
restore_previous_context
eret
synchronous_current_elsp_el0:
save_current_context
bl exception_common
restore_previous_context
eret
irq_current_elsp_el0:
save_current_context
bl exception_common
restore_previous_context
eret
fiq_current_elsp_el0:
save_current_context
bl exception_common
restore_previous_context
eret
system_error_current_elsp_el0:
save_current_context
bl exception_common
restore_previous_context
eret