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

db4
Slava Pestov 2010-01-12 16:31:10 +13:00
parent 782d91f927
commit 85a45d63d9
2 changed files with 8 additions and 0 deletions

View File

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

View File

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