1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 16:37:35 +00:00

Kernel: Add Syscalls/fork.cpp to aarch64 build

This commit is contained in:
Timon Kruiper 2023-01-25 16:19:30 +01:00 committed by Linus Groh
parent 6ad87f9409
commit 5ffd53e2f2
2 changed files with 4 additions and 1 deletions

View file

@ -276,6 +276,7 @@ set(KERNEL_SOURCES
Syscalls/faccessat.cpp Syscalls/faccessat.cpp
Syscalls/fallocate.cpp Syscalls/fallocate.cpp
Syscalls/fcntl.cpp Syscalls/fcntl.cpp
Syscalls/fork.cpp
Syscalls/fsync.cpp Syscalls/fsync.cpp
Syscalls/ftruncate.cpp Syscalls/ftruncate.cpp
Syscalls/futex.cpp Syscalls/futex.cpp
@ -402,7 +403,6 @@ if ("${SERENITY_ARCH}" STREQUAL "x86_64")
Panic.cpp Panic.cpp
Syscall.cpp Syscall.cpp
Syscalls/execve.cpp Syscalls/execve.cpp
Syscalls/fork.cpp
) )
set(KERNEL_SOURCES set(KERNEL_SOURCES

View file

@ -125,6 +125,9 @@ ErrorOr<FlatPtr> Process::sys$fork(RegisterState& regs)
dbgln_if(FORK_DEBUG, "fork: child will begin executing at {:#04x}:{:p} with stack {:p}, kstack {:p}", dbgln_if(FORK_DEBUG, "fork: child will begin executing at {:#04x}:{:p} with stack {:p}, kstack {:p}",
child_regs.cs, child_regs.rip, child_regs.rsp, child_regs.rsp0); child_regs.cs, child_regs.rip, child_regs.rsp, child_regs.rsp0);
#elif ARCH(AARCH64)
(void)regs;
TODO_AARCH64();
#else #else
# error Unknown architecture # error Unknown architecture
#endif #endif