Skip to content

Commit 30f6b5a

Browse files
committed
Add stubbed nanosleep()
1 parent 12cc38d commit 30f6b5a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/functions.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,14 @@ void setup_kvm_system_calls()
560560
SYSPRINT("epoll_create1(...) = %lld\n", regs.rax);
561561
cpu.set_registers(regs);
562562
});
563+
Machine::install_syscall_handler(
564+
230, [] (auto& cpu) {
565+
/* SYS nanosleep */
566+
auto& regs = cpu.registers();
567+
regs.rax = 0;
568+
SYSPRINT("nanosleep(...) = %lld\n", regs.rax);
569+
cpu.set_registers(regs);
570+
});
563571
Machine::install_syscall_handler(
564572
233, [] (auto& cpu) {
565573
/* SYS epoll_ctl */

0 commit comments

Comments
 (0)