diff --git a/basis/cpu/x86/32/bootstrap.factor b/basis/cpu/x86/32/bootstrap.factor index fdcf5ca25f..e438bd1c0f 100644 --- a/basis/cpu/x86/32/bootstrap.factor +++ b/basis/cpu/x86/32/bootstrap.factor @@ -295,6 +295,7 @@ IN: bootstrap.x86 : jit-start-context ( -- ) ! Create the new context in return-reg jit-load-vm + jit-save-context ESP [] vm-reg MOV "new_context" jit-call diff --git a/basis/cpu/x86/64/bootstrap.factor b/basis/cpu/x86/64/bootstrap.factor index 308546131a..e8c8d99643 100644 --- a/basis/cpu/x86/64/bootstrap.factor +++ b/basis/cpu/x86/64/bootstrap.factor @@ -270,6 +270,7 @@ IN: bootstrap.x86 : jit-start-context ( -- ) ! Create the new context in return-reg + jit-save-context arg1 vm-reg MOV "new_context" jit-call