From 5ffd53e2f22e0c99a99acc900e64bc64b7d6114d Mon Sep 17 00:00:00 2001 From: Timon Kruiper Date: Wed, 25 Jan 2023 16:19:30 +0100 Subject: [PATCH] Kernel: Add Syscalls/fork.cpp to aarch64 build --- Kernel/CMakeLists.txt | 2 +- Kernel/Syscalls/fork.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Kernel/CMakeLists.txt b/Kernel/CMakeLists.txt index 884b96e60a..7b69dc29a8 100644 --- a/Kernel/CMakeLists.txt +++ b/Kernel/CMakeLists.txt @@ -276,6 +276,7 @@ set(KERNEL_SOURCES Syscalls/faccessat.cpp Syscalls/fallocate.cpp Syscalls/fcntl.cpp + Syscalls/fork.cpp Syscalls/fsync.cpp Syscalls/ftruncate.cpp Syscalls/futex.cpp @@ -402,7 +403,6 @@ if ("${SERENITY_ARCH}" STREQUAL "x86_64") Panic.cpp Syscall.cpp Syscalls/execve.cpp - Syscalls/fork.cpp ) set(KERNEL_SOURCES diff --git a/Kernel/Syscalls/fork.cpp b/Kernel/Syscalls/fork.cpp index bd50ae3609..0135ee4cf4 100644 --- a/Kernel/Syscalls/fork.cpp +++ b/Kernel/Syscalls/fork.cpp @@ -125,6 +125,9 @@ ErrorOr Process::sys$fork(RegisterState& regs) 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); +#elif ARCH(AARCH64) + (void)regs; + TODO_AARCH64(); #else # error Unknown architecture #endif