mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +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:
parent
cc5403f77b
commit
57dd3b66c5
6 changed files with 4 additions and 56 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue