1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 16:35:06 +00:00

Kernel/aarch64: Implement stub for asm_signal_trampoline

This get us further into the boot process, since Process::initialize
does not crash anymore.
This commit is contained in:
Timon Kruiper 2022-12-22 16:48:11 +01:00 committed by Andrew Kaster
parent 1cc06b9985
commit 21deb603de
2 changed files with 11 additions and 4 deletions

View file

@ -12,10 +12,6 @@
#include <Kernel/Sections.h> #include <Kernel/Sections.h>
#include <Kernel/kstdio.h> #include <Kernel/kstdio.h>
// Process
char const* asm_signal_trampoline = nullptr;
char const* asm_signal_trampoline_end = nullptr;
namespace Kernel { namespace Kernel {
ProcessID g_init_pid { 0 }; ProcessID g_init_pid { 0 };

View file

@ -430,6 +430,17 @@ void signal_trampoline_dummy()
: :
: "i"(Syscall::SC_sigreturn), : "i"(Syscall::SC_sigreturn),
"i"(offset_to_first_register_slot)); "i"(offset_to_first_register_slot));
#elif ARCH(AARCH64)
asm(
".global asm_signal_trampoline\n"
"asm_signal_trampoline:\n"
// TODO: Implement this when we support userspace for aarch64
"wfi\n"
"\n"
".global asm_signal_trampoline_end\n"
"asm_signal_trampoline_end: \n");
#else
# error Unknown architecture
#endif #endif
} }