mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:37:34 +00:00
Kernel: Call exit_trap in AArch64 restore_context_and_eret
This matches x86_64's behaviour in common_trap_exit. (called from thread_context_first_enter) Currently thread_context_first_enter is only called when creating new processes from scratch, in which case this doesn't change the actual behaviour. But once thread_context_first_enter is called as part of execve support, this will ensure the Thread's m_current_trap is set correctly to the new trap frame.
This commit is contained in:
parent
a349570a04
commit
0dc5c49938
4 changed files with 23 additions and 0 deletions
|
@ -208,5 +208,7 @@ system_error_lower_el:
|
|||
|
||||
.global restore_context_and_eret
|
||||
restore_context_and_eret:
|
||||
mov x0, sp
|
||||
bl exit_trap
|
||||
restore_previous_context
|
||||
eret
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue