From 1dcb0eecd88e7209dffd3fe32735ececffcdc8e5 Mon Sep 17 00:00:00 2001 From: simonmar Date: Thu, 20 Apr 2000 13:20:31 +0000 Subject: [PATCH] [project @ 2000-04-20 13:20:31 by simonmar] Fix for initModules when unregisterised. --- ghc/rts/RtsStartup.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 */ /* ----------------------------------------------------------------------------- -- 1.7.10.4