UserspaceEmulator: Stub out virt$msyscall()
This is a no-op inside UE for now.
This commit is contained in:
parent
b97d23a71f
commit
9dacd7c0ec
Notes:
sideshowbarker
2024-07-18 22:33:45 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/9dacd7c0ecb
2 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue