[project @ 1997-10-30 22:29:59 by sof]
authorsof <unknown>
Thu, 30 Oct 1997 22:29:59 +0000 (22:29 +0000)
committersof <unknown>
Thu, 30 Oct 1997 22:29:59 +0000 (22:29 +0000)
ErrorIO_innards: push realWorld# on B stack (cf. startStgWorld)

ghc/runtime/main/StgStartup.lhc

index 61d963b..30b29a8 100644 (file)
@@ -355,10 +355,13 @@ STGFUN(ErrorIO_innards)
 
     /* Finish stack setup as if for a top-level task and enter the error node */
 
+    /* Put an IoWorld token on the B stack */
+    SpB -= BREL(1);
+    *SpB = (P_) realWorldZh_closure;
+/*
     SpA = SuA - AREL(1);
-
     *SpA = (P_) realWorldZh_closure;
-
+*/
     STKO_LINK(StkOReg) = PrelBase_Z91Z93_closure;
     STKO_RETURN(StkOReg) = NULL;