mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 21:58:10 +00:00
Kernel: Make the kernel compile & link for x86_64
It's now possible to build the whole kernel with an x86_64 toolchain. There's no bootstrap code so it doesn't work yet (obviously.)
This commit is contained in:
parent
aae91dda66
commit
adb2e6be5f
15 changed files with 316 additions and 48 deletions
|
@ -281,8 +281,10 @@ 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.
|
||||
#elif ARCH(X86_64)
|
||||
asm("asm_signal_trampoline:\n"
|
||||
"cli;hlt\n"
|
||||
"asm_signal_trampoline_end:\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue