[project @ 2002-11-08 09:01:06 by simonpj]
[ghc-hetmet.git] / ghc / rts / StgStartup.hc
index bed2312..660bf35 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: StgStartup.hc,v 1.15 2001/03/23 16:36:21 simonmar Exp $
+ * $Id: StgStartup.hc,v 1.19 2002/07/16 14:56:09 simonmar Exp $
  *
  * (c) The GHC Team, 1998-1999
  *
@@ -45,8 +45,8 @@
 
 EXTFUN(stg_stop_thread_entry);
 
-#ifdef PROFILING
-#define STOP_THREAD_BITMAP 1
+#if defined(PROFILING)
+#define STOP_THREAD_BITMAP 3
 #else
 #define STOP_THREAD_BITMAP 0
 #endif
@@ -133,10 +133,6 @@ STGFUN(stg_enterStackTop)
   
 /* -----------------------------------------------------------------------------
    Special STG entry points for module registration.
-
-   This stuff is problematic for Hugs, because it introduces a
-   dependency between the RTS and the program (ie. __init_PrelMain).  So
-   we currently disable module initialisation for Hugs.
    -------------------------------------------------------------------------- */
 
 extern F_ *init_stack;
@@ -150,7 +146,7 @@ STGFUN(stg_init_ret)
 
 /* On entry to stg_init:
  *    init_stack[0] = &stg_init_ret;
- *    init_stack[1] = __init_Something;
+ *    init_stack[1] = __stginit_Something;
  */
 STGFUN(stg_init)
 {
@@ -159,8 +155,3 @@ STGFUN(stg_init)
   JMP_(POP_INIT_STACK());
   FE_
 }
-
-/* PrelGHC doesn't really exist... */
-
-START_MOD_INIT(__init_PrelGHC);
-END_MOD_INIT();