diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-06 22:56:00 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-06 23:15:44 +0100 |
commit | 9dacd7c0ecb8ee78595c93d33bd432e18c00fe00 (patch) | |
tree | b2187d573e2db7cf055381a5a9b675b4a600cb2f /Userland/DevTools | |
parent | b97d23a71f2d6b69854a5befc58c5ad75b3ef565 (diff) | |
download | serenity-9dacd7c0ecb8ee78595c93d33bd432e18c00fe00.zip |
UserspaceEmulator: Stub out virt$msyscall()
This is a no-op inside UE for now.
Diffstat (limited to 'Userland/DevTools')
-rw-r--r-- | Userland/DevTools/UserspaceEmulator/Emulator.cpp | 9 | ||||
-rw-r--r-- | Userland/DevTools/UserspaceEmulator/Emulator.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Userland/DevTools/UserspaceEmulator/Emulator.cpp b/Userland/DevTools/UserspaceEmulator/Emulator.cpp index bc5544805c..b19457e8bd 100644 --- a/Userland/DevTools/UserspaceEmulator/Emulator.cpp +++ b/Userland/DevTools/UserspaceEmulator/Emulator.cpp @@ -530,6 +530,8 @@ u32 Emulator::virt_syscall(u32 function, u32 arg1, u32 arg2, u32 arg3) return virt$umask(arg1); case SC_chown: return virt$chown(arg1); + case SC_msyscall: + return virt$msyscall(arg1); default: reportln("\n=={}== \033[31;1mUnimplemented syscall: {}\033[0m, {:p}", getpid(), Syscall::to_string((Syscall::Function)function), function); dump_backtrace(); @@ -1765,4 +1767,11 @@ bool Emulator::find_malloc_symbols(const MmapRegion& libc_text) m_malloc_size_symbol_end = m_malloc_size_symbol_start + malloc_size_symbol.value().size(); return true; } + +int Emulator::virt$msyscall(FlatPtr) +{ + // FIXME: Implement this. + return 0; +} + } diff --git a/Userland/DevTools/UserspaceEmulator/Emulator.h b/Userland/DevTools/UserspaceEmulator/Emulator.h index 308fdfe2d5..03e051028f 100644 --- a/Userland/DevTools/UserspaceEmulator/Emulator.h +++ b/Userland/DevTools/UserspaceEmulator/Emulator.h @@ -172,6 +172,7 @@ private: int virt$anon_create(size_t, int); int virt$recvfd(int); int virt$sendfd(int, int); + int virt$msyscall(FlatPtr); FlatPtr allocate_vm(size_t size, size_t alignment); bool find_malloc_symbols(const MmapRegion& libc_text); |