1 /* 2 * PROJECT: ReactOS Kernel 3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later) 4 * PURPOSE: Core source file for SMP management 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 extern PPROCESSOR_IDENTITY HalpProcessorIdentity; 18 19 /* FUNCTIONS *****************************************************************/ 20 21 VOID 22 HalpSetupProcessorsTable( 23 _In_ UINT32 NTProcessorNumber) 24 { 25 PKPRCB CurrentPrcb; 26 27 /* 28 * Link the Prcb of the current CPU to 29 * the current CPUs entry in the global ProcessorIdentity 30 */ 31 CurrentPrcb = KeGetCurrentPrcb(); 32 HalpProcessorIdentity[NTProcessorNumber].ProcessorPrcb = CurrentPrcb; 33 } 34