[project @ 2000-05-16 14:04:25 by rrt]
[ghc-hetmet.git] / ghc / includes / StgMiscClosures.h
index daddd28..e0ed424 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: StgMiscClosures.h,v 1.11 1999/03/02 19:44:20 sof Exp $
+ * $Id: StgMiscClosures.h,v 1.16 2000/01/13 14:34:01 hwloidl Exp $
  *
  * (c) The GHC Team, 1998-1999
  *
@@ -24,6 +24,16 @@ STGFUN(CAF_ENTERED_entry);
 STGFUN(CAF_BLACKHOLE_entry);
 STGFUN(BLACKHOLE_entry);
 STGFUN(BLACKHOLE_BQ_entry);
+#ifdef SMP
+STGFUN(WHITEHOLE_entry);
+#endif
+#ifdef TICKY_TICKY
+STGFUN(SE_BLACKHOLE_entry);
+STGFUN(SE_CAF_BLACKHOLE_entry);
+#endif
+#if defined(PAR) || defined(GRAN)
+STGFUN(RBH_entry);
+#endif
 STGFUN(BCO_entry);
 STGFUN(EVACUATED_entry);
 STGFUN(FOREIGN_entry);
@@ -43,6 +53,15 @@ STGFUN(MUT_CONS_entry);
 STGFUN(END_MUT_LIST_entry);
 STGFUN(dummy_ret_entry);
 
+/* this is the NIL ptr for a TSO queue (e.g. runnable queue) */
+#define END_TSO_QUEUE  ((StgTSO *)(void*)&END_TSO_QUEUE_closure)
+#if defined(PAR) || defined(GRAN)
+/* this is the NIL ptr for a blocking queue */
+# define END_BQ_QUEUE  ((StgBlockingQueueElement *)(void*)&END_TSO_QUEUE_closure)
+/* this is the NIL ptr for a blocked fetch queue (as in PendingFetches in GUM) */
+# define END_BF_QUEUE  ((StgBlockedFetch *)(void*)&END_TSO_QUEUE_closure)
+#endif
+
 /* info tables */
 
 extern DLL_IMPORT_RTS const StgInfoTable IND_info;
@@ -55,6 +74,16 @@ extern DLL_IMPORT_RTS const StgInfoTable CAF_ENTERED_info;
 extern DLL_IMPORT_RTS const StgInfoTable CAF_BLACKHOLE_info;
 extern DLL_IMPORT_RTS const StgInfoTable BLACKHOLE_info;
 extern DLL_IMPORT_RTS const StgInfoTable BLACKHOLE_BQ_info;
+#ifdef SMP
+extern DLL_IMPORT_RTS const StgInfoTable WHITEHOLE_info;
+#endif
+#ifdef TICKY_TICKY
+extern DLL_IMPORT_RTS const StgInfoTable SE_BLACKHOLE_info;
+extern DLL_IMPORT_RTS const StgInfoTable SE_CAF_BLACKHOLE_info;
+#endif
+#if defined(PAR) || defined(GRAN)
+extern DLL_IMPORT_RTS const StgInfoTable RBH_info;
+#endif
 extern DLL_IMPORT_RTS const StgInfoTable BCO_info;
 extern DLL_IMPORT_RTS const StgInfoTable EVACUATED_info;
 extern DLL_IMPORT_RTS const StgInfoTable FOREIGN_info;
@@ -79,7 +108,8 @@ extern DLL_IMPORT_RTS const StgInfoTable dummy_ret_info;
 #ifdef INTERPRETER
 
 EXTFUN(Hugs_CONSTR_entry);
-extern const StgInfoTable ret_bco_info;
+
+extern const vec_info_8 ret_bco_info;
 
 #endif /* INTERPRETER */
 
@@ -89,6 +119,7 @@ extern DLL_IMPORT_DATA StgClosure END_TSO_QUEUE_closure;
 extern DLL_IMPORT_DATA StgClosure END_MUT_LIST_closure;
 extern DLL_IMPORT_DATA StgClosure NO_FINALIZER_closure;
 extern DLL_IMPORT_DATA StgClosure dummy_ret_closure;
+extern DLL_IMPORT_DATA StgClosure forceIO_closure;
 
 extern DLL_IMPORT_DATA StgIntCharlikeClosure CHARLIKE_closure[];
 extern DLL_IMPORT_DATA StgIntCharlikeClosure INTLIKE_closure[];
@@ -97,6 +128,8 @@ extern DLL_IMPORT_DATA StgIntCharlikeClosure INTLIKE_closure[];
 
 extern StgFun stg_error_entry;
 
+  /* (see also below  -- KSW 1998-12) */
+
 /* standard selector thunks */
 
 #ifdef COMPILING_RTS
@@ -140,6 +173,43 @@ EI__ __sel_13_noupd_info;
 EI__ __sel_14_noupd_info;
 EI__ __sel_15_noupd_info;
 
+  /* and their standard entry points  -- KSW 1998-12 */
+
+EF_(__sel_0_upd_entry);
+EF_(__sel_1_upd_entry);
+EF_(__sel_2_upd_entry);
+EF_(__sel_3_upd_entry);
+EF_(__sel_4_upd_entry);
+EF_(__sel_5_upd_entry);
+EF_(__sel_6_upd_entry);
+EF_(__sel_7_upd_entry);
+EF_(__sel_8_upd_entry);
+EF_(__sel_8_upd_entry);
+EF_(__sel_9_upd_entry);
+EF_(__sel_10_upd_entry);
+EF_(__sel_11_upd_entry);
+EF_(__sel_12_upd_entry);
+EF_(__sel_13_upd_entry);
+EF_(__sel_14_upd_entry);
+EF_(__sel_15_upd_entry);
+
+EF_(__sel_0_noupd_entry);
+EF_(__sel_1_noupd_entry);
+EF_(__sel_2_noupd_entry);
+EF_(__sel_3_noupd_entry);
+EF_(__sel_4_noupd_entry);
+EF_(__sel_5_noupd_entry);
+EF_(__sel_6_noupd_entry);
+EF_(__sel_7_noupd_entry);
+EF_(__sel_8_noupd_entry);
+EF_(__sel_9_noupd_entry);
+EF_(__sel_10_noupd_entry);
+EF_(__sel_11_noupd_entry);
+EF_(__sel_12_noupd_entry);
+EF_(__sel_13_noupd_entry);
+EF_(__sel_14_noupd_entry);
+EF_(__sel_15_noupd_entry);
+
 /* standard ap thunks */
 
 EI__ __ap_1_upd_info;