mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 17:05:10 +00:00
UserspaceEmulator: Implement beep syscall
This commit is contained in:
parent
3e72fd68b0
commit
a46e48089d
2 changed files with 8 additions and 0 deletions
|
@ -507,6 +507,8 @@ u32 Emulator::virt_syscall(u32 function, u32 arg1, u32 arg2, u32 arg3)
|
|||
return virt$readlink(arg1);
|
||||
case SC_allocate_tls:
|
||||
return virt$allocate_tls(arg1);
|
||||
case SC_beep:
|
||||
return virt$beep();
|
||||
default:
|
||||
reportln("\n=={}== \033[31;1mUnimplemented syscall: {}\033[0m, {:p}", getpid(), Syscall::to_string((Syscall::Function)function), function);
|
||||
dump_backtrace();
|
||||
|
@ -1688,6 +1690,11 @@ u32 Emulator::virt$allocate_tls(size_t size)
|
|||
return tls_base;
|
||||
}
|
||||
|
||||
int Emulator::virt$beep()
|
||||
{
|
||||
return syscall(SC_beep);
|
||||
}
|
||||
|
||||
bool Emulator::find_malloc_symbols(const MmapRegion& libc_text)
|
||||
{
|
||||
auto mapped_file = make<MappedFile>("/usr/lib/libc.so");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue