mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
Kernel+LibC+UE: Implement sleep() via sys$clock_nanosleep()
This doesn't need to be its own syscall either. :^)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user