mirror of
https://github.com/EchoStretch/kstuff.git
synced 2026-10-22 11:42:27 -05:00
lib: add PS5-specific CRT with direct syscall support gdb_stub: add a PS5-specific "kek" payload
30 lines
301 B
NASM
30 lines
301 B
NASM
section .text.rfork
|
|
|
|
extern rfork_thread
|
|
|
|
rfork:
|
|
push rbp
|
|
push rbx
|
|
push r12
|
|
push r13
|
|
push r14
|
|
push r15
|
|
push rax
|
|
mov rsi, rsp
|
|
lea rdx, [rel .child_thunk]
|
|
mov rcx, rsp
|
|
call rfork_thread
|
|
.exit:
|
|
pop r15
|
|
pop r15
|
|
pop r14
|
|
pop r13
|
|
pop r12
|
|
pop rbx
|
|
pop rbp
|
|
ret
|
|
.child_thunk:
|
|
mov rsp, rdi
|
|
xor eax, eax
|
|
jmp .exit
|