summaryrefslogtreecommitdiff
path: root/DevTools/UserspaceEmulator
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-30 10:43:15 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-30 10:45:51 +0200
commitf857f3ce4cfc3fca4bbaca3aae67a04897dc911f (patch)
tree3f96ccca1d01873263bbcf2676f0bffab88c34c4 /DevTools/UserspaceEmulator
parent95ed363b1559384911ad4d41e2df305cd1f8a7fb (diff)
downloadserenity-f857f3ce4cfc3fca4bbaca3aae67a04897dc911f.zip
Kernel+LibC+UE: Implement usleep() via sys$clock_nanosleep()
This doesn't need to be its own syscall. Thanks @BenWiederhake for the idea. :^)
Diffstat (limited to 'DevTools/UserspaceEmulator')
-rw-r--r--DevTools/UserspaceEmulator/Emulator.cpp7
-rw-r--r--DevTools/UserspaceEmulator/Emulator.h1
2 files changed, 0 insertions, 8 deletions
diff --git a/DevTools/UserspaceEmulator/Emulator.cpp b/DevTools/UserspaceEmulator/Emulator.cpp
index d3dba62486..1c1235bd17 100644
--- a/DevTools/UserspaceEmulator/Emulator.cpp
+++ b/DevTools/UserspaceEmulator/Emulator.cpp
@@ -272,8 +272,6 @@ u32 Emulator::virt_syscall(u32 function, u32 arg1, u32 arg2, u32 arg3)
return virt$ioctl(arg1, arg2, arg3);
case SC_get_dir_entries:
return virt$get_dir_entries(arg1, arg2, arg3);
- case SC_usleep:
- return virt$usleep(arg1);
case SC_shbuf_create:
return virt$shbuf_create(arg1, arg2);
case SC_shbuf_allow_pid:
@@ -384,11 +382,6 @@ u32 Emulator::virt_syscall(u32 function, u32 arg1, u32 arg2, u32 arg3)
}
}
-int Emulator::virt$usleep(useconds_t us)
-{
- return syscall(SC_usleep, us);
-}
-
int Emulator::virt$shbuf_create(int size, FlatPtr buffer)
{
u8* host_data = nullptr;
diff --git a/DevTools/UserspaceEmulator/Emulator.h b/DevTools/UserspaceEmulator/Emulator.h
index 4b0ec9a94a..d36df0ef15 100644
--- a/DevTools/UserspaceEmulator/Emulator.h
+++ b/DevTools/UserspaceEmulator/Emulator.h
@@ -85,7 +85,6 @@ private:
int virt$stat(FlatPtr);
int virt$realpath(FlatPtr);
int virt$gethostname(FlatPtr, ssize_t);
- int virt$usleep(useconds_t);
int virt$shbuf_create(int size, FlatPtr buffer);
int virt$shbuf_allow_pid(int, pid_t peer_pid);
int virt$shbuf_allow_all(int);