Fix usage of a uninitialized variable, unnecessary goto not replaced by a if(...) statement

svn path=/trunk/; revision=24342
This commit is contained in:
Thomas Bluemel
2006-10-01 14:02:08 +00:00
parent d7978d0054
commit 70da417c02
+6 -5
View File
@@ -311,12 +311,13 @@ KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
/* Initialize the machine type */
KiInitializeMachineType();
/* Skip initial setup if this isn't the Boot CPU */
if (Cpu) goto AppCpuInit;
/* Get GDT, IDT, PCR and TSS pointers */
KiGetMachineBootPointers(&Gdt, &Idt, &Pcr, &Tss);
/* Skip initial setup if this isn't the Boot CPU */
if (Cpu)
goto AppCpuInit;
/* Setup the TSS descriptors and entries */
Ki386InitializeTss(Tss, Idt, Gdt);
@@ -347,8 +348,8 @@ AppCpuInit:
do
{
/* Loop until execution can continue */
while (KiFreezeExecutionLock == 1);
} while(InterlockedBitTestAndSet(&KiFreezeExecutionLock, 0));
while ((volatile KSPIN_LOCK)KiFreezeExecutionLock == 1);
} while(InterlockedBitTestAndSet((PLONG)&KiFreezeExecutionLock, 0));
/* Setup CPU-related fields */
__writefsdword(KPCR_NUMBER, Cpu);