mirror of
https://github.com/reactos/reactos.git
synced 2024-11-01 12:26:32 +00:00
2c8d083fc0
Especially HalpParseApicTables() which looked early-WIP and was buggy. And keep smp/mps/mps.c in sync'.
55 lines
1.6 KiB
C
55 lines
1.6 KiB
C
/*
|
|
* PROJECT: ReactOS Kernel
|
|
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
|
|
* PURPOSE: Source File for MPS specific functions
|
|
* COPYRIGHT: Copyright 2021 Justin Miller <justinmiller100@gmail.com>
|
|
*/
|
|
|
|
/* INCLUDES *******************************************************************/
|
|
|
|
#include <hal.h>
|
|
#include <smp.h>
|
|
|
|
#define NDEBUG
|
|
#include <debug.h>
|
|
|
|
/* GLOBALS ********************************************************************/
|
|
|
|
static // TODO: While HalpParseApicTables() is UNIMPLEMENTED.
|
|
ULONG PhysicalProcessorCount;
|
|
|
|
static PROCESSOR_IDENTITY HalpStaticProcessorIdentity[MAXIMUM_PROCESSORS];
|
|
const PPROCESSOR_IDENTITY HalpProcessorIdentity = HalpStaticProcessorIdentity;
|
|
|
|
/* FUNCTIONS ******************************************************************/
|
|
|
|
VOID
|
|
HalpParseApicTables(
|
|
_In_ PLOADER_PARAMETER_BLOCK LoaderBlock)
|
|
{
|
|
UNREFERENCED_PARAMETER(LoaderBlock);
|
|
|
|
// TODO: Fill HalpStaticProcessorIdentity[].
|
|
UNIMPLEMENTED;
|
|
}
|
|
|
|
VOID
|
|
HalpPrintApicTables(VOID)
|
|
{
|
|
#if DBG
|
|
ULONG i;
|
|
|
|
DPRINT1("Physical processor count: %lu\n", PhysicalProcessorCount);
|
|
for (i = 0; i < PhysicalProcessorCount; i++)
|
|
{
|
|
DPRINT1(" Processor %lu: ProcessorId %u, LapicId %u, ProcessorStarted %u, BSPCheck %u, ProcessorPrcb %p\n",
|
|
i,
|
|
HalpProcessorIdentity[i].ProcessorId,
|
|
HalpProcessorIdentity[i].LapicId,
|
|
HalpProcessorIdentity[i].ProcessorStarted,
|
|
HalpProcessorIdentity[i].BSPCheck,
|
|
HalpProcessorIdentity[i].ProcessorPrcb);
|
|
}
|
|
#endif
|
|
}
|