]> gitweb.factorcode.org Git - factor.git/commitdiff
oops, handler still need to jit-load-vm on x86-32
authorJoe Groff <arcata@gmail.com>
Wed, 14 Dec 2011 04:09:07 +0000 (20:09 -0800)
committerJoe Groff <arcata@gmail.com>
Wed, 14 Dec 2011 17:56:50 +0000 (09:56 -0800)
basis/cpu/x86/bootstrap.factor

index 42ea87a5be3d5e814aef24d2e07c539be1cc0acb..e1608e4b80bd96f197a2eb4aa1ed129de05ad18f 100644 (file)
@@ -102,7 +102,11 @@ big-endian off
     signal-handler-save-regs
     [| r i | stack-reg i bootstrap-cells [+] r MOV ] each-index
 
-    PUSHF ;
+    PUSHF
+
+    ! on x86-32 we need to load the vm register
+    ! on x86-64 it's already loaded whenever we're in a factor context
+    bootstrap-cell 4 = [ jit-load-vm ] when ;
 
 : jit-signal-handler-epilog ( -- )
     POPF