cpu.x86.32: fix callbacks on platforms where stack is not aligned
parent
0653bae7ec
commit
86c16eeb6a
|
@ -250,10 +250,10 @@ M:: x86.32 %unbox-large-struct ( n c-type -- )
|
||||||
] with-aligned-stack ;
|
] with-aligned-stack ;
|
||||||
|
|
||||||
M: x86.32 %nest-stacks ( -- )
|
M: x86.32 %nest-stacks ( -- )
|
||||||
|
! Save current frame. See comment in vm/contexts.hpp
|
||||||
|
EAX stack-reg stack-frame get total-size>> 3 cells - [+] LEA
|
||||||
8 [
|
8 [
|
||||||
push-vm-ptr
|
push-vm-ptr
|
||||||
! Save current frame. See comment in vm/contexts.hpp
|
|
||||||
EAX stack-reg stack-frame get total-size>> [+] LEA
|
|
||||||
EAX PUSH
|
EAX PUSH
|
||||||
"nest_stacks" f %alien-invoke
|
"nest_stacks" f %alien-invoke
|
||||||
] with-aligned-stack ;
|
] with-aligned-stack ;
|
||||||
|
|
Loading…
Reference in New Issue