diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-10 13:48:16 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-10 19:21:16 +0200 |
commit | 02f9ffeb7f4332c8930b60ef4acf3d6f2cef4577 (patch) | |
tree | 9eb9645cd2ca6f5703a9bd78c650dfb268daa906 | |
parent | fdfc66db618a59242db34fd6b59e5ada095190ab (diff) | |
download | serenity-02f9ffeb7f4332c8930b60ef4acf3d6f2cef4577.zip |
UserspaceEmulator: Fail sys$map_time_page() with ENOSYS for now
This allows LibC to fall back to sys$clock_gettime() until we can
add support for the kernel time page to UserspaceEmulator.
-rw-r--r-- | Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp b/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp index d60e30d8a7..94ef1c1fb8 100644 --- a/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp +++ b/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp @@ -247,6 +247,8 @@ u32 Emulator::virt_syscall(u32 function, u32 arg1, u32 arg2, u32 arg3) return virt$msyscall(arg1); case SC_futex: return virt$futex(arg1); + case SC_map_time_page: + return -ENOSYS; default: reportln("\n=={}== \033[31;1mUnimplemented syscall: {}\033[0m, {:p}", getpid(), Syscall::to_string((Syscall::Function)function), function); dump_backtrace(); |