mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:07:43 +00:00
UserspaceEmulator: Stub out virt$msyscall()
This is a no-op inside UE for now.
This commit is contained in:
parent
b97d23a71f
commit
9dacd7c0ec
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);
|
return virt$umask(arg1);
|
||||||
case SC_chown:
|
case SC_chown:
|
||||||
return virt$chown(arg1);
|
return virt$chown(arg1);
|
||||||
|
case SC_msyscall:
|
||||||
|
return virt$msyscall(arg1);
|
||||||
default:
|
default:
|
||||||
reportln("\n=={}== \033[31;1mUnimplemented syscall: {}\033[0m, {:p}", getpid(), Syscall::to_string((Syscall::Function)function), function);
|
reportln("\n=={}== \033[31;1mUnimplemented syscall: {}\033[0m, {:p}", getpid(), Syscall::to_string((Syscall::Function)function), function);
|
||||||
dump_backtrace();
|
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();
|
m_malloc_size_symbol_end = m_malloc_size_symbol_start + malloc_size_symbol.value().size();
|
||||||
return true;
|
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$anon_create(size_t, int);
|
||||||
int virt$recvfd(int);
|
int virt$recvfd(int);
|
||||||
int virt$sendfd(int, int);
|
int virt$sendfd(int, int);
|
||||||
|
int virt$msyscall(FlatPtr);
|
||||||
|
|
||||||
FlatPtr allocate_vm(size_t size, size_t alignment);
|
FlatPtr allocate_vm(size_t size, size_t alignment);
|
||||||
bool find_malloc_symbols(const MmapRegion& libc_text);
|
bool find_malloc_symbols(const MmapRegion& libc_text);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue