1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 04:27:35 +00:00

Kernel: Remove read_tsc() syscall

Since nothing is using this, let's just remove it. That's one less
thing to worry about.
This commit is contained in:
Andreas Kling 2020-01-03 09:27:09 +01:00
parent 23e4e03233
commit 24cc67d199
5 changed files with 1 additions and 21 deletions

View file

@ -2515,18 +2515,6 @@ int Process::sys$rmdir(const char* pathname)
return VFS::the().rmdir(StringView(pathname), current_directory());
}
int Process::sys$read_tsc(u32* lsw, u32* msw)
{
if (!validate_write_typed(lsw))
return -EFAULT;
if (!validate_write_typed(msw))
return -EFAULT;
read_tsc(*lsw, *msw);
if (!is_superuser())
*lsw &= ~0xfff;
return 0;
}
int Process::sys$chmod(const char* pathname, mode_t mode)
{
if (!validate_read_str(pathname))