MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / syscall_read

Function syscall_read

source/kernel/syscall.cpp:100–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100static U32 syscall_read(CPU* cpu, U32 eipCount) {
101 SYS_LOG1(SYSCALL_READ, cpu, "read: fd=%d buf=0x%X len=%d", ARG1, ARG2, ARG3);
102 U32 result = cpu->thread->process->read(cpu->thread, (FD)ARG1, ARG2, ARG3);
103 SYS_LOG(SYSCALL_READ, cpu, " result=%d(0x%X)\n", result, result);
104 return result;
105}
106
107static U32 syscall_write(CPU* cpu, U32 eipCount) {
108 SYS_LOG1(SYSCALL_WRITE, cpu, "write: fd=%d buf=0x%X len=%d", ARG1, ARG2, ARG3);

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected