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:
parent
06432719fd
commit
e43fdcc77e
1 changed files with 28 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue