| 428 | } |
| 429 | |
| 430 | U32 KSystem::times(KThread* thread, U32 buf) { |
| 431 | if (buf) { |
| 432 | KMemory* memory = thread->memory; |
| 433 | |
| 434 | memory->writed(buf, (U32)thread->getThreadUserTime() * 10); // user time |
| 435 | memory->writed(buf + 4, (U32)thread->kernelTime * 10); // system time |
| 436 | memory->writed(buf + 8, 0); // user time of children |
| 437 | memory->writed(buf + 12, 0); // system time of children |
| 438 | } |
| 439 | return (U32)Platform::getMicroCounter()*10; |
| 440 | } |
| 441 | |
| 442 | U32 KSystem::setpgid(U32 pid, U32 gpid) { |
| 443 | KProcessPtr process; |
nothing calls this directly
no test coverage detected