mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 19:26:05 +00:00
Fix usage of a uninitialized variable, unnecessary goto not replaced by a if(...) statement
svn path=/trunk/; revision=24342
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user