| 948 | } |
| 949 | |
| 950 | long SysNanoSleep(regs64_t* r){ |
| 951 | uint64_t nanoseconds = SC_ARG0(r); |
| 952 | |
| 953 | uint64_t ticks = nanoseconds * Timer::GetFrequency() / 1000000000; |
| 954 | Timer::SleepCurrentThread(ticks); |
| 955 | |
| 956 | return 0; |
| 957 | } |
| 958 | |
| 959 | long SysPRead(regs64_t* r){ |
| 960 | if(SC_ARG0(r) > Scheduler::GetCurrentProcess()->fileDescriptors.get_length()){ |
nothing calls this directly
no test coverage detected