[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-03-26 10:01:21 -07:00 committed by Stanislav Motylkov
parent 0fc21e5a9b
commit a09f925c1c
No known key found for this signature in database
GPG key ID: AFE513258CBA9E92

View file

@ -14,11 +14,20 @@
/* GLOBALS *******************************************************************/ /* GLOBALS *******************************************************************/
extern PPROCESSOR_IDENTITY HalpProcessorIdentity;
/* FUNCTIONS *****************************************************************/ /* FUNCTIONS *****************************************************************/
VOID VOID
HalpSetupProcessorsTable( HalpSetupProcessorsTable(
_In_ UINT32 NTProcessorNumber) _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;
} }