| 180 | } |
| 181 | |
| 182 | static U32 syscall_chdir(CPU* cpu, U32 eipCount) { |
| 183 | BString path = cpu->memory->readString(ARG1); |
| 184 | |
| 185 | SYS_LOG1(SYSCALL_PROCESS, cpu, "chdir: path=%X(%s)", ARG1, path.c_str()); |
| 186 | U32 result = cpu->thread->process->chdir(path); |
| 187 | SYS_LOG(SYSCALL_PROCESS, cpu, " result=%d(0x%X)\n", result, result); |
| 188 | return result; |
| 189 | } |
| 190 | |
| 191 | static U32 syscall_time(CPU* cpu, U32 eipCount) { |
| 192 | U32 result = (U32)(KSystem::getSystemTimeAsMicroSeconds() / 1000000l); |
nothing calls this directly
no test coverage detected