mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[HAL] Fix SMP initialization
- Don't use CONFIG_SMP, this isn't handled in (most of) hal - Add a dummy HalpSetupProcessorsTable for UP - Call HalpRegisterKdSupportFunctions only for processor 0
This commit is contained in:
parent
86b82e4ce7
commit
10bb50b456
3 changed files with 12 additions and 6 deletions
|
@ -25,16 +25,12 @@ HalpInitProcessor(
|
|||
IN ULONG ProcessorNumber,
|
||||
IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||
{
|
||||
#ifdef CONFIG_SMP
|
||||
if (ProcessorNumber == 0)
|
||||
{
|
||||
#endif
|
||||
HalpParseApicTables(LoaderBlock);
|
||||
#ifdef CONFIG_SMP
|
||||
}
|
||||
|
||||
HalpSetupProcessorsTable(ProcessorNumber);
|
||||
#endif
|
||||
|
||||
/* Initialize the local APIC for this cpu */
|
||||
ApicInitializeLocalApic(ProcessorNumber);
|
||||
|
|
|
@ -57,9 +57,12 @@ HalInitializeProcessor(
|
|||
InterlockedBitTestAndSetAffinity(&HalpActiveProcessors, ProcessorNumber);
|
||||
InterlockedBitTestAndSetAffinity(&HalpDefaultInterruptAffinity, ProcessorNumber);
|
||||
|
||||
if (ProcessorNumber == 0)
|
||||
{
|
||||
/* Register routines for KDCOM */
|
||||
HalpRegisterKdSupportFunctions();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
|
|
|
@ -33,6 +33,13 @@ HalStartNextProcessor(
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
VOID
|
||||
HalpSetupProcessorsTable(
|
||||
_In_ UINT32 NTProcessorNumber)
|
||||
{
|
||||
NOTHING;
|
||||
}
|
||||
|
||||
#ifdef _M_AMD64
|
||||
|
||||
VOID
|
||||
|
|
Loading…
Reference in a new issue