cvg, sst1: tweak another getenv() usage.

This commit is contained in:
Ozkan Sezer
2021-11-11 17:33:40 +03:00
parent 5ffccc63b8
commit a20bb982cc
4 changed files with 26 additions and 8 deletions

View File

@@ -898,11 +898,13 @@ FX_EXPORT FxBool FX_CSTYLE sst1InitShutdown(FxU32 *sstbase)
return(FXFALSE);
}
if(GETENV(("SSTV2_NOSHUTDOWN")))
if(GETENV(("SSTV2_NOSHUTDOWN"))) {
INIT_PRINTF(("sst1InitShutdown(): Bypassing shutdown with SSTV2_NOSHUTDOWN\n"));
goto noshutdown;
}
n = 0;
while(!GETENV(("SSTV2_NOSHUTDOWN"))) {
for ( ;; ) {
if(!n)
sstPtr = sstMaster;
else
@@ -948,6 +950,8 @@ FX_EXPORT FxBool FX_CSTYLE sst1InitShutdown(FxU32 *sstbase)
break;
}
noshutdown: ;
/* sst1InitIdle(sstbase); */
#if !DIRECTX

View File

@@ -703,11 +703,13 @@ FX_EXPORT FxBool FX_CSTYLE sst1InitShutdown(FxU32 *sstbase)
/*pciClose(); [dBorca] not just yet! We still need PCI to shutdown */
#endif
if(GETENV(("SST_NOSHUTDOWN")))
if(GETENV(("SST_NOSHUTDOWN"))) {
INIT_PRINTF(("sst1InitShutdown(): Bypassing shutdown with SST_NOSHUTDOWN\n"));
goto noshutdown;
}
n = 0;
while(!GETENV(("SST_NOSHUTDOWN"))) {
for ( ;; ) {
if(!n)
sstPtr = sstMaster;
else
@@ -749,6 +751,9 @@ FX_EXPORT FxBool FX_CSTYLE sst1InitShutdown(FxU32 *sstbase)
if((++n > 1) || !SliEnable)
break;
}
noshutdown: ;
sst1InitIdle(sstbase);
INIT_PRINTF(("sst1InitShutdown(): Returning with status %d...\n", FXTRUE));
#ifdef INIT_OUTPUT