From: simonmar Date: Thu, 20 Apr 2000 13:20:31 +0000 (+0000) Subject: [project @ 2000-04-20 13:20:31 by simonmar] X-Git-Tag: Approximately_9120_patches~4642 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=1dcb0eecd88e7209dffd3fe32735ececffcdc8e5;p=ghc-hetmet.git [project @ 2000-04-20 13:20:31 by simonmar] Fix for initModules when unregisterised. --- diff --git a/ghc/rts/RtsStartup.c b/ghc/rts/RtsStartup.c index 164d3d9..48ae736 100644 --- a/ghc/rts/RtsStartup.c +++ b/ghc/rts/RtsStartup.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: RtsStartup.c,v 1.41 2000/04/11 16:51:44 sewardj Exp $ + * $Id: RtsStartup.c,v 1.42 2000/04/20 13:20:31 simonmar Exp $ * * (c) The GHC Team, 1998-2000 * @@ -226,7 +226,11 @@ nat init_sp = 0; static void initModules ( void *init_root ) { +#ifdef SMP Capability cap; +#else +#define cap MainRegTable +#endif init_sp = 0; init_stack = (F_ *)allocate(INIT_STACK_SIZE / sizeof(W_)); @@ -239,7 +243,6 @@ initModules ( void *init_root ) cap.rSp = (P_)(init_stack + init_sp); StgRun((StgFunPtr)stg_init, &cap); } - #endif /* !INTERPRETER */ /* -----------------------------------------------------------------------------