diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-30 13:21:24 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-30 13:21:24 +0200 |
commit | 57dd3b66c5db7fc57d4e1c55f1515901e02bf419 (patch) | |
tree | cdea89b75a00d6f8d63d6e10348ea846fec844bf /DevTools | |
parent | cc5403f77bba64f8195a341e35a652e221e477e0 (diff) | |
download | serenity-57dd3b66c5db7fc57d4e1c55f1515901e02bf419.zip |
Kernel+LibC+UE: Implement sleep() via sys$clock_nanosleep()
This doesn't need to be its own syscall either. :^)
Diffstat (limited to 'DevTools')
-rw-r--r-- | DevTools/UserspaceEmulator/Emulator.cpp | 7 | ||||
-rw-r--r-- | DevTools/UserspaceEmulator/Emulator.h | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/DevTools/UserspaceEmulator/Emulator.cpp b/DevTools/UserspaceEmulator/Emulator.cpp index 1c1235bd17..19c88924b6 100644 --- a/DevTools/UserspaceEmulator/Emulator.cpp +++ b/DevTools/UserspaceEmulator/Emulator.cpp @@ -256,8 +256,6 @@ u32 Emulator::virt_syscall(u32 function, u32 arg1, u32 arg2, u32 arg3) return virt$setpgid(arg1, arg2); case SC_execve: return virt$execve(arg1); - case SC_sleep: - return virt$sleep(arg1); case SC_sigaction: return virt$sigaction(arg1, arg2, arg3); case SC_sigreturn: @@ -1055,11 +1053,6 @@ int Emulator::virt$sigaction(int signum, FlatPtr act, FlatPtr oldact) return 0; } -int Emulator::virt$sleep(unsigned seconds) -{ - return syscall(SC_sleep, seconds); -} - int Emulator::virt$sigreturn() { u32 stack_ptr = m_cpu.esp().value(); diff --git a/DevTools/UserspaceEmulator/Emulator.h b/DevTools/UserspaceEmulator/Emulator.h index d36df0ef15..f92a996809 100644 --- a/DevTools/UserspaceEmulator/Emulator.h +++ b/DevTools/UserspaceEmulator/Emulator.h @@ -135,7 +135,6 @@ private: int virt$connect(int sockfd, FlatPtr address, socklen_t address_size); void virt$exit(int); ssize_t virt$getrandom(FlatPtr buffer, size_t buffer_size, unsigned int flags); - int virt$sleep(unsigned); int virt$chdir(FlatPtr, size_t); int virt$dup2(int, int); int virt$getpgrp(); |