xref: /reactos/hal/halx86/smp/mps/mps.c (revision 944b942e)
1 /*
2  * PROJECT:     ReactOS Kernel
3  * LICENSE:     GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4  * PURPOSE:     Source File for MPS specific functions
5  * COPYRIGHT:   Copyright 2021 Justin Miller <justinmiller100@gmail.com>
6  */
7 
8 /* INCLUDES *******************************************************************/
9 
10 #include <hal.h>
11 #include <smp.h>
12 #define NDEBUG
13 #include <debug.h>
14 
15 /* GLOBALS ********************************************************************/
16 
17 PROCESSOR_IDENTITY HalpStaticProcessorIdentity[MAXIMUM_PROCESSORS] = {{0}};
18 PPROCESSOR_IDENTITY HalpProcessorIdentity = NULL;
19 UINT32 PhysicalProcessorCount = 0;
20 
21 /* FUNCTIONS ******************************************************************/
22 
23 VOID
24 HalpParseApicTables(
25     _In_ PLOADER_PARAMETER_BLOCK LoaderBlock)
26 {
27     UNIMPLEMENTED;
28 }
29 
30 VOID
31 HalpPrintApicTables(VOID)
32 {
33     UINT32 i;
34 
35     DPRINT1("HAL has detected a physical processor count of: %d\n", PhysicalProcessorCount);
36     for (i = 0; i < PhysicalProcessorCount; i++)
37     {
38         DPRINT1("Information about the following processor is for processors number: %d\n"
39                 "   The BSPCheck is set to: %X\n"
40                 "   The LapicID is set to: %X\n",
41                 i, HalpProcessorIdentity[i].BSPCheck, HalpProcessorIdentity[i].LapicId);
42     }
43 }
44