unwind-stack-frames didn't load VM pointer into the VM register on PowerPC and x86-64, and so if C code had clobbered this register it would crash
parent
782d91f927
commit
85a45d63d9
|
@ -358,6 +358,10 @@ CONSTANT: ctx-reg 16
|
|||
! Unwind stack frames
|
||||
1 4 MR
|
||||
|
||||
! Load VM pointer into vm-reg, since we're entering from
|
||||
! C code
|
||||
0 vm-reg LOAD32 0 rc-absolute-ppc-2/2 jit-vm
|
||||
|
||||
! Load ds and rs registers
|
||||
jit-restore-context
|
||||
|
||||
|
|
|
@ -89,6 +89,10 @@ IN: bootstrap.x86
|
|||
! Unwind stack frames
|
||||
RSP arg2 MOV
|
||||
|
||||
! Load VM pointer into vm-reg, since we're entering from
|
||||
! C code
|
||||
vm-reg 0 MOV 0 rc-absolute-cell jit-vm
|
||||
|
||||
! Load ds and rs registers
|
||||
jit-restore-context
|
||||
|
||||
|
|
Loading…
Reference in New Issue