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
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
}
UINT32
unsigned int UINT32
Definition:
ProcessorBind.h:163
void
Definition:
nsiface.idl:2307
_In_
#define _In_
Definition:
ms_sal.h:308
KeGetCurrentPrcb
FORCEINLINE struct _KPRCB * KeGetCurrentPrcb(VOID)
Definition:
ketypes.h:1080
HalpSetupProcessorsTable
VOID HalpSetupProcessorsTable(_In_ UINT32 NTProcessorNumber)
Definition:
smp.c:22
HalpProcessorIdentity
PPROCESSOR_IDENTITY HalpProcessorIdentity
Definition:
madt.c:21
smp.h
_KPRCB
Definition:
ketypes.h:561
_PROCESSOR_IDENTITY
Definition:
smp.h:12
_PROCESSOR_IDENTITY::ProcessorPrcb
PKPRCB ProcessorPrcb
Definition:
smp.h:17
hal
halx86
smp
smp.c
Generated on Thu Feb 9 2023 06:05:17 for ReactOS by
1.9.6