hopefully fix stack handling for linux
This commit is contained in:
parent
c2dd6a186d
commit
dc86bac83d
|
@ -44,6 +44,8 @@ ARM_Dispatch:
|
||||||
|
|
||||||
#ifdef WIN64
|
#ifdef WIN64
|
||||||
sub rsp, 0x28
|
sub rsp, 0x28
|
||||||
|
#else
|
||||||
|
sub rsp, 0x8
|
||||||
#endif
|
#endif
|
||||||
mov RCPU, ARG1_REG64
|
mov RCPU, ARG1_REG64
|
||||||
mov RCPSR, [RCPU + ARM_CPSR_offset]
|
mov RCPSR, [RCPU + ARM_CPSR_offset]
|
||||||
|
@ -58,6 +60,8 @@ ARM_Ret:
|
||||||
|
|
||||||
#ifdef WIN64
|
#ifdef WIN64
|
||||||
add rsp, 0x28
|
add rsp, 0x28
|
||||||
|
#else
|
||||||
|
add rsp, 0x8
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
pop rbp
|
pop rbp
|
||||||
|
|
Loading…
Reference in New Issue