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

Function syscall_modify_ldt

source/kernel/syscall.cpp:726–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724}
725
726static U32 syscall_modify_ldt(CPU* cpu, U32 eipCount) {
727 KMemory* memory = cpu->memory;
728 SYS_LOG1(SYSCALL_PROCESS, cpu, "modify_ldt: func=%d ptr=%X(index=%d address=%X limit=%X flags=%X) count=%d", ARG1, ARG2, memory->readd(ARG2), memory->readd(ARG2+4), memory->readd(ARG2+8), memory->readd(ARG2+12), ARG3);
729 U32 result = cpu->thread->modify_ldt(ARG1, ARG2, ARG3);
730 SYS_LOG(SYSCALL_PROCESS, cpu, " result=%d(0x%X)\n", result, result);
731 return result;
732}
733
734static U32 syscall_mprotect(CPU* cpu, U32 eipCount) {
735 SYS_LOG1(SYSCALL_MEMORY, cpu, "mprotect: address=%X len=%d prot=%X", ARG1, ARG2, ARG3);

Callers

nothing calls this directly

Calls 2

modify_ldtMethod · 0.80
readdMethod · 0.45

Tested by

no test coverage detected