[project @ 2005-05-05 12:26:15 by simonpj]
[ghc-hetmet.git] / ghc / includes / Regs.h
index 10e0b3f..0203238 100644 (file)
@@ -86,12 +86,15 @@ typedef struct StgRegTable_ {
   StgPtr         rHp;
   StgPtr         rHpLim;
   struct StgTSO_ *rCurrentTSO;
-  struct bdescr_ *rNursery;
+  struct step_   *rNursery;
   struct bdescr_ *rCurrentNursery;
   StgWord         rHpAlloc;    /* number of *bytes* being allocated in heap */
 #if defined(SMP) || defined(PAR)
   StgSparkPool   rSparks;      /* per-task spark pool */
 #endif
+  StgWord        rInHaskell;    /* non-zero if we're in Haskell code */
+    // If this flag is set, we are running Haskell code.  Used to detect
+    // uses of 'foreign import unsafe' that should be 'safe'.
 } StgRegTable;