[project @ 2005-04-27 09:54:26 by simonmar]
authorsimonmar <unknown>
Wed, 27 Apr 2005 09:54:26 +0000 (09:54 +0000)
committersimonmar <unknown>
Wed, 27 Apr 2005 09:54:26 +0000 (09:54 +0000)
Fix the volatile regs to the suspendThread call

ghc/compiler/codeGen/CgForeignCall.hs

index 6c7fc04..9897651 100644 (file)
@@ -80,7 +80,7 @@ emitForeignCall results (CCall (CCallSpec target cconv safety)) args live
     emitSaveThreadState
     stmtC (CmmCall (CmmForeignCall suspendThread CCallConv) [(id,NoHint)]
                        [ (CmmReg (CmmGlobal BaseReg), PtrHint) ] 
-                       Nothing{-save all; ToDo-}
+                       (Just vols)
                        )
     stmtC (the_call vols)
     stmtC (CmmCall (CmmForeignCall resumeThread CCallConv) []