This commit is contained in:
Pavel 2022-11-16 15:51:04 +03:00
parent 0a77dbd148
commit 6a35ad8304
2 changed files with 2 additions and 1 deletions

View File

@ -56,6 +56,7 @@ end;
function ps4_is_signal_return(param:PQWORD):Integer; SysV_ABI_CDecl;
begin
Result:=1;
if ptruint(param)<4*1024 then Exit;
if (param[0]<>$48006a40247c8d48) or
(param[1]<>$050f000001a1c0c7) or

View File

@ -2907,7 +2907,7 @@ begin
//OpenOrbis relies on the fact that besides %rdi and %rsp also link to StartupParams, a very strange thing
asm
xor %esi,%esi
xor %rsi,%rsi
lea StartupParams,%rdi
mov %rdi,%rsp
jmp P