hopefully fix stack handling for linux

This commit is contained in:
RSDuck 2020-04-26 16:17:16 +02:00
parent c2dd6a186d
commit dc86bac83d
1 changed files with 4 additions and 0 deletions

View File

@ -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