[HALX86] Add support for parsing ACPI MADT tables

This commit is contained in:
Justin Miller 2022-03-26 12:39:28 -07:00 committed by Stanislav Motylkov
parent 5c79900519
commit eebe11ae0c
No known key found for this signature in database
GPG key ID: AFE513258CBA9E92
3 changed files with 62 additions and 6 deletions

View file

@ -25,13 +25,14 @@ HalpInitProcessor(
IN ULONG ProcessorNumber,
IN PLOADER_PARAMETER_BLOCK LoaderBlock)
{
#ifdef CONFIG_SMP
if (ProcessorNumber == 0)
{
/* APIC tables should always be parsed once before touching APIC */
#endif
HalpParseApicTables(LoaderBlock);
#ifdef CONFIG_SMP
}
#ifdef CONFIG_SMP
HalpSetupProcessorsTable(ProcessorNumber);
#endif
@ -52,6 +53,8 @@ HalpInitPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
(HalpBuildType & PRCB_BUILD_UNIPROCESSOR) ? "UP" : "SMP",
(HalpBuildType & PRCB_BUILD_DEBUG) ? "DBG" : "REL");
HalpPrintApicTables();
/* Enable clock interrupt handler */
HalpEnableInterruptHandler(IDT_INTERNAL,
0,
@ -59,9 +62,6 @@ HalpInitPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
CLOCK2_LEVEL,
HalpClockInterrupt,
Latched);
#if DBG
HalpPrintApicTables();
#endif
}
VOID