Telkin
Loading...
Searching...
No Matches
Privileged Operations

Telkin provides the tk::privilegedWrite function-pointer to perform memory copy operations with kernel permissions.

Example:

using namespace tk::ppc;
void OverwriteSyscall() {
const u32 instruction = li(GPR::r3, 0xCAFE);
tk::privilegedWrite((const void*)0x02000000, &instruction, sizeof(u32));
}
Definition Assembly.h:28
@ r3
Definition Assembly.h:31
consteval u32 li(R rt, s16 si)
Definition Assembly.h:161
writefunc_t privilegedWrite
Note
The .rodata section of RPX files is already writable, so a privileged write is unnecessary for modifying it.

See Inline Assembly for more information on the constexpr assembler used.