X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fruntime%2Fmain%2FStgStartup.lhc;h=57089df79dc0c30aca45a4d6e079ce0f116d70e8;hb=967cc47f37cb93a5e2b6df7822c9a646f0428247;hp=d37d7354b42ed3f59c79c0f355e8ec90f07f616c;hpb=169b432a9074006c98caafa439900fa797e5ad25;p=ghc-hetmet.git diff --git a/ghc/runtime/main/StgStartup.lhc b/ghc/runtime/main/StgStartup.lhc index d37d735..57089df 100644 --- a/ghc/runtime/main/StgStartup.lhc +++ b/ghc/runtime/main/StgStartup.lhc @@ -197,14 +197,14 @@ SET_STATIC_HDR(EmptySPTable_closure,EmptyStablePointerTable_info,CC_SUBSUMED,,ED the following symbols may be referenced in an object file, but never entered */ -P_ GHC_void_closure = (P_) 0xbadbadbaL; -P_ GHC_ZcCCallable_static_info = (P_) 0xbadbadbaL; -P_ GHC_ZcCReturnable_static_info = (P_) 0xbadbadbaL; +P_ PrelGHC_void_closure = (P_) 0xbadbadbaL; +P_ PrelGHC_ZcCCallable_static_info = (P_) 0xbadbadbaL; +P_ PrelGHC_ZcCReturnable_static_info = (P_) 0xbadbadbaL; /* the IoWorld token to start the whole thing off */ /* Question: this is just an amusing hex code isn't it -- or does it mean something? ADR */ -P_ realWorldZh_closure = (P_) 0xbadbadbaL; +P_ realWorldZh_closure = (P_)0xbadbadbaL; #ifndef CONCURRENT @@ -229,7 +229,7 @@ STGFUN(startStgWorld) /* Put an IoWorld token on the A stack */ SpB -= BREL(1); - *SpB = (P_) realWorldZh_closure; + (P_)*SpB = (P_) realWorldZh_closure; Node = (P_) TopClosure; /* Point to the closure for main/errorIO-arg */ ENT_VIA_NODE(); @@ -310,6 +310,8 @@ STGFUN(ErrorIO_innards) /* Assumes that "TopClosure" has been set already */ { FB_ + fflush(stdout); + fflush(stderr); if (ErrorIO_call_count >= 16 /* MAGIC CONSTANT */ ) { /* Don't wrap the calls; we're done with STG land */ fflush(stdout); @@ -395,6 +397,8 @@ ErrorIO_innards(STG_NO_ARGS) /* Assumes that "TopClosure" has been set already */ { FB_ + fflush(stdout); + fflush(stderr); if (ErrorIO_call_count >= 16 /* MAGIC CONSTANT */ ) { /* Don't wrap the calls; we're done with STG land */ fflush(stdout); @@ -501,6 +505,26 @@ STATIC_ITBL(STK_STUB_info,STK_STUB_entry,UpdErr,0,INFO_OTHER_TAG,0,0,const,EF_,I SET_STATIC_HDR(STK_STUB_closure,STK_STUB_info,CC_SUBSUMED,,EXTDATA_RO) , (W_)0, (W_)0 }; + + +ED_RO_(vtbl_seq); + +/* +STGFUN(seqZhCode) +{ + FB_ + __label__ cont; + SpB[BREL(0)] = (W_) RetReg; + SpB[BREL(1)] = (W_) &&cont; + RetReg = (StgRetAddr) vtbl_seq; + ENT_VIA_NODE(); + InfoPtr = (D_)(INFO_PTR(Node)); + JMP_(ENTRY_CODE(InfoPtr)); +cont: + FE_ +} +*/ + \end{code} %/**************************************************************** @@ -631,14 +655,7 @@ END_REGISTER_CCS() /* _regPrelude is above */ -START_REGISTER_PRELUDE(_regGHCbase); -END_REGISTER_CCS() - -/* OLD: START_REGISTER_PRELUDE(_regGHCerr); */ -START_REGISTER_PRELUDE(_regGHC); -END_REGISTER_CCS() - -START_REGISTER_PRELUDE(_regPreludeGlaST); +START_REGISTER_PRELUDE(_regPrelGHC); END_REGISTER_CCS() #endif