diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-25 16:18:36 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-25 16:27:12 +0100 |
commit | 8f70528f301bea948ab8f7a3a0835284dc735dd1 (patch) | |
tree | cde16b066e01c876ce373524e8673346a6c8cb0d /Kernel/Process.cpp | |
parent | eb08a0edd5159ee36782496f10736521147b575a (diff) | |
download | serenity-8f70528f301bea948ab8f7a3a0835284dc735dd1.zip |
Kernel: Take some baby steps towards x86_64
Make more of the kernel compile in 64-bit mode, and make some things
pointer-size-agnostic (by using FlatPtr.)
There's a lot of work to do here before the kernel will even compile.
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r-- | Kernel/Process.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index d518106c37..e4ed6f2f31 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -260,6 +260,7 @@ Process::~Process() extern void signal_trampoline_dummy(); void signal_trampoline_dummy() { +#if ARCH(I386) // The trampoline preserves the current eax, pushes the signal code and // then calls the signal handler. We do this because, when interrupting a // blocking syscall, that syscall may return some special error code in eax; @@ -280,6 +281,9 @@ void signal_trampoline_dummy() "int 0x82\n" // sigreturn syscall "asm_signal_trampoline_end:\n" ".att_syntax" ::"i"(Syscall::SC_sigreturn)); +#else + // FIXME: Implement trampoline for other architectures. +#endif } extern "C" void asm_signal_trampoline(void); |