FIX: #1253 (Can't use non-layout at top level)
[ghc-hetmet.git] / rts / StgStartup.cmm
index 33345cf..2d83a67 100644 (file)
@@ -128,6 +128,13 @@ stg_returnToSchedButFirst
   jump R2;
 }
 
+stg_threadFinished
+{
+  StgRegTable_rRet(BaseReg) = ThreadFinished;
+  R1 = BaseReg;
+  jump StgReturn;
+}  
+
 /* -----------------------------------------------------------------------------
     Strict IO application - performing an IO action and entering its result.