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 ULONG ProcessorNumber,
|
||||||
IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SMP
|
|
||||||
if (ProcessorNumber == 0)
|
if (ProcessorNumber == 0)
|
||||||
{
|
{
|
||||||
#endif
|
|
||||||
HalpParseApicTables(LoaderBlock);
|
HalpParseApicTables(LoaderBlock);
|
||||||
#ifdef CONFIG_SMP
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HalpSetupProcessorsTable(ProcessorNumber);
|
HalpSetupProcessorsTable(ProcessorNumber);
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Initialize the local APIC for this cpu */
|
/* Initialize the local APIC for this cpu */
|
||||||
ApicInitializeLocalApic(ProcessorNumber);
|
ApicInitializeLocalApic(ProcessorNumber);
|
||||||
|
|
|
@ -57,8 +57,11 @@ HalInitializeProcessor(
|
||||||
InterlockedBitTestAndSetAffinity(&HalpActiveProcessors, ProcessorNumber);
|
InterlockedBitTestAndSetAffinity(&HalpActiveProcessors, ProcessorNumber);
|
||||||
InterlockedBitTestAndSetAffinity(&HalpDefaultInterruptAffinity, ProcessorNumber);
|
InterlockedBitTestAndSetAffinity(&HalpDefaultInterruptAffinity, ProcessorNumber);
|
||||||
|
|
||||||
/* Register routines for KDCOM */
|
if (ProcessorNumber == 0)
|
||||||
HalpRegisterKdSupportFunctions();
|
{
|
||||||
|
/* Register routines for KDCOM */
|
||||||
|
HalpRegisterKdSupportFunctions();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -33,6 +33,13 @@ HalStartNextProcessor(
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VOID
|
||||||
|
HalpSetupProcessorsTable(
|
||||||
|
_In_ UINT32 NTProcessorNumber)
|
||||||
|
{
|
||||||
|
NOTHING;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef _M_AMD64
|
#ifdef _M_AMD64
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
Loading…
Reference in a new issue