SMP: move link field from StgRegTable to Capability
/* -----------------------------------------------------------------------------
/* -----------------------------------------------------------------------------
- * $Id: Regs.h,v 1.10 2001/11/08 12:46:31 simonmar Exp $
+ * $Id: Regs.h,v 1.11 2002/01/24 00:40:28 sof Exp $
*
* (c) The GHC Team, 1998-1999
*
*
* (c) The GHC Team, 1998-1999
*
#if defined(SMP) || defined(PAR)
StgSparkPool rSparks; // per-task spark pool
#endif
#if defined(SMP) || defined(PAR)
StgSparkPool rSparks; // per-task spark pool
#endif
-#if defined(SMP)
- struct StgRegTable_ *link; // per-task register tables are linked together
-#endif
* structure, so that we can index both forwards and backwards to take
* advantage of shorter instruction forms on some archs (eg. x86).
*/
* structure, so that we can index both forwards and backwards to take
* advantage of shorter instruction forms on some archs (eg. x86).
*/
+typedef struct Capability_ {
StgFunTable f;
StgRegTable r;
StgFunTable f;
StgRegTable r;
+#if defined(SMP)
+ struct Capability_ *link; /* per-task register tables are linked together */
+#endif
} Capability;
/* No such thing as a MainRegTable under SMP - each thread must
} Capability;
/* No such thing as a MainRegTable under SMP - each thread must