mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +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,8 +57,11 @@ HalInitializeProcessor(
|
|||
InterlockedBitTestAndSetAffinity(&HalpActiveProcessors, ProcessorNumber);
|
||||
InterlockedBitTestAndSetAffinity(&HalpDefaultInterruptAffinity, ProcessorNumber);
|
||||
|
||||
/* Register routines for KDCOM */
|
||||
HalpRegisterKdSupportFunctions();
|
||||
if (ProcessorNumber == 0)
|
||||
{
|
||||
/* Register routines for KDCOM */
|
||||
HalpRegisterKdSupportFunctions();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -33,6 +33,13 @@ HalStartNextProcessor(
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
VOID
|
||||
HalpSetupProcessorsTable(
|
||||
_In_ UINT32 NTProcessorNumber)
|
||||
{
|
||||
NOTHING;
|
||||
}
|
||||
|
||||
#ifdef _M_AMD64
|
||||
|
||||
VOID
|
||||
|
|
Loading…
Reference in a new issue