[HALX86] Implement HalpSetupProcessorsTable

Add a helper function for getting a pointer to the PRCB of every processor
in the system and assign it to the PROCESSOR_IDENTITY struct.
This commit is contained in:
Justin Miller
2022-04-07 22:54:31 +03:00
committed by Stanislav Motylkov
parent 0fc21e5a9b
commit a09f925c1c
+10 -1
View File
@@ -14,11 +14,20 @@
/* GLOBALS *******************************************************************/
extern PPROCESSOR_IDENTITY HalpProcessorIdentity;
/* FUNCTIONS *****************************************************************/
VOID
HalpSetupProcessorsTable(
_In_ UINT32 NTProcessorNumber)
{
UNIMPLEMENTED;
PKPRCB CurrentPrcb;
/*
* Link the Prcb of the current CPU to
* the current CPUs entry in the global ProcessorIdentity
*/
CurrentPrcb = KeGetCurrentPrcb();
HalpProcessorIdentity[NTProcessorNumber].ProcessorPrcb = CurrentPrcb;
}