mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
[HALX86] Add a way to print the ProcessorTable data on bootup
This commit is contained in:
parent
a09f925c1c
commit
5c79900519
4 changed files with 42 additions and 0 deletions
|
@ -28,3 +28,18 @@ HalpParseApicTables(
|
|||
{
|
||||
UNIMPLEMENTED;
|
||||
}
|
||||
|
||||
VOID
|
||||
HalpPrintApicTables(VOID)
|
||||
{
|
||||
UINT32 i;
|
||||
|
||||
DPRINT1("HAL has detected a physical processor count of: %d\n", HalpApicInfoTable.ProcessorCount);
|
||||
for (i = 0; i < HalpApicInfoTable.ProcessorCount; i++)
|
||||
{
|
||||
DPRINT1("Information about the following processor is for processors number: %d\n"
|
||||
" The BSPCheck is set to: %X\n"
|
||||
" The LapicID is set to: %X\n",
|
||||
i, HalpProcessorIdentity[i].BSPCheck, HalpProcessorIdentity[i].LapicId);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,6 +59,9 @@ HalpInitPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
|||
CLOCK2_LEVEL,
|
||||
HalpClockInterrupt,
|
||||
Latched);
|
||||
#if DBG
|
||||
HalpPrintApicTables();
|
||||
#endif
|
||||
}
|
||||
|
||||
VOID
|
||||
|
|
|
@ -25,3 +25,6 @@ HalpParseApicTables(
|
|||
VOID
|
||||
HalpSetupProcessorsTable(
|
||||
_In_ UINT32 NTProcessorNumber);
|
||||
|
||||
VOID
|
||||
HalpPrintApicTables(VOID);
|
||||
|
|
|
@ -12,6 +12,12 @@
|
|||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
/* GLOBALS ********************************************************************/
|
||||
|
||||
PROCESSOR_IDENTITY HalpStaticProcessorIdentity[MAXIMUM_PROCESSORS] = {{0}};
|
||||
PPROCESSOR_IDENTITY HalpProcessorIdentity = NULL;
|
||||
UINT32 PhysicalProcessorCount = 0;
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
VOID
|
||||
|
@ -20,3 +26,18 @@ HalpParseApicTables(
|
|||
{
|
||||
UNIMPLEMENTED;
|
||||
}
|
||||
|
||||
VOID
|
||||
HalpPrintApicTables(VOID)
|
||||
{
|
||||
UINT32 i;
|
||||
|
||||
DPRINT1("HAL has detected a physical processor count of: %d\n", PhysicalProcessorCount);
|
||||
for (i = 0; i < PhysicalProcessorCount; i++)
|
||||
{
|
||||
DPRINT1("Information about the following processor is for processors number: %d\n"
|
||||
" The BSPCheck is set to: %X\n"
|
||||
" The LapicID is set to: %X\n",
|
||||
i, HalpProcessorIdentity[i].BSPCheck, HalpProcessorIdentity[i].LapicId);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue