mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
fix broken assumption that all native functions will push rbp on the stack first thing
This commit is contained in:
parent
0a5de853d3
commit
fc898c4df1
@ -2089,7 +2089,13 @@ class Compiler: public Assembler {
|
|||||||
lea(rsp, FrameFootprint + BytesPerWord, rcx);
|
lea(rsp, FrameFootprint + BytesPerWord, rcx);
|
||||||
mov(rcx, rdi, threadFrameOffset()); // set thread frame to current
|
mov(rcx, rdi, threadFrameOffset()); // set thread frame to current
|
||||||
|
|
||||||
jmp(rbx);
|
push(rbp);
|
||||||
|
|
||||||
|
call(rbx);
|
||||||
|
|
||||||
|
add(BytesPerWord, rsp);
|
||||||
|
|
||||||
|
ret();
|
||||||
|
|
||||||
return finish();
|
return finish();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user