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

Function syscall_brk

source/kernel/syscall.cpp:327–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327static U32 syscall_brk(CPU* cpu, U32 eipCount) {
328 SYS_LOG1(SYSCALL_MEMORY|SYSCALL_PROCESS, cpu, "brk: address=%.8X", ARG1);
329 U32 result = cpu->thread->process->brk(cpu->thread, ARG1);
330 SYS_LOG(SYSCALL_MEMORY|SYSCALL_PROCESS, cpu, " result=%d(0x%X)\n", result, result);
331 return result;
332}
333
334static U32 syscall_getgid(CPU* cpu, U32 eipCount) {
335 U32 result = cpu->thread->process->groupId;

Callers

nothing calls this directly

Calls 1

brkMethod · 0.80

Tested by

no test coverage detected