ReactOS 0.4.15-dev-5673-g06b25bc
smp.c
Go to the documentation of this file.
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
18
19/* FUNCTIONS *****************************************************************/
20
21VOID
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}
unsigned int UINT32
#define _In_
Definition: ms_sal.h:308
FORCEINLINE struct _KPRCB * KeGetCurrentPrcb(VOID)
Definition: ketypes.h:1080
VOID HalpSetupProcessorsTable(_In_ UINT32 NTProcessorNumber)
Definition: smp.c:22
PPROCESSOR_IDENTITY HalpProcessorIdentity
Definition: madt.c:21
PKPRCB ProcessorPrcb
Definition: smp.h:17