summaryrefslogtreecommitdiff
path: root/Kernel/Arch/aarch64/TrapFrame.h
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2023-04-02 03:36:23 +0300
committerAndrew Kaster <andrewdkaster@gmail.com>2023-04-03 02:59:37 -0600
commit0dc5c499387440497d93c9902a2fdc66d4ba5a02 (patch)
tree60a9dbeb98d8bf28f8dc0e4558d71e2f20605f2e /Kernel/Arch/aarch64/TrapFrame.h
parenta349570a04a07b96059da49d325515f63151c4b5 (diff)
downloadserenity-0dc5c499387440497d93c9902a2fdc66d4ba5a02.zip
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.
Diffstat (limited to 'Kernel/Arch/aarch64/TrapFrame.h')
-rw-r--r--Kernel/Arch/aarch64/TrapFrame.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Arch/aarch64/TrapFrame.h b/Kernel/Arch/aarch64/TrapFrame.h
index d3cf9c94a6..b6172cbf24 100644
--- a/Kernel/Arch/aarch64/TrapFrame.h
+++ b/Kernel/Arch/aarch64/TrapFrame.h
@@ -24,4 +24,6 @@ struct TrapFrame {
TrapFrame& operator=(TrapFrame&&) = delete;
};
+extern "C" void exit_trap(TrapFrame*) __attribute__((used));
+
}