1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 19:05:08 +00:00

Kernel: Remove sys$shbuf_set_volatile() and userland wrappers

There are no remaining users of this syscall so let's remove it! :^)
This commit is contained in:
Andreas Kling 2021-01-16 14:39:53 +01:00
parent c71807a3fc
commit de31e82f97
9 changed files with 0 additions and 77 deletions

View file

@ -397,8 +397,6 @@ u32 Emulator::virt_syscall(u32 function, u32 arg1, u32 arg2, u32 arg3)
return virt$shbuf_release(arg1);
case SC_shbuf_seal:
return virt$shbuf_seal(arg1);
case SC_shbuf_set_volatile:
return virt$shbuf_set_volatile(arg1, arg2);
case SC_profiling_enable:
return virt$profiling_enable(arg1);
case SC_profiling_disable:
@ -622,13 +620,6 @@ int Emulator::virt$shbuf_seal(int shbuf_id)
return region->seal();
}
int Emulator::virt$shbuf_set_volatile(int shbuf_id, bool is_volatile)
{
auto* region = m_mmu.shbuf_region(shbuf_id);
ASSERT(region);
return region->set_volatile(is_volatile);
}
int Emulator::virt$profiling_enable(pid_t pid)
{
return syscall(SC_profiling_enable, pid);