ReactOS 0.4.16-dev-983-g23ad936
processor.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Kernel
3 * LICENSE: MIT (https://spdx.org/licenses/MIT)
4 * PURPOSE: Portable processor related routines
5 * COPYRIGHT: Copyright 2025 Timo Kreuzer <timo.kreuzer@reactos.org>
6 */
7
8/* INCLUDES ******************************************************************/
9
10#include <ntoskrnl.h>
11#define NDEBUG
12#include <debug.h>
13
14/* GLOBALS *******************************************************************/
15
17
18/* Number of processors */
20
21#ifdef CONFIG_SMP
22
23/* Theoretical maximum number of processors that can be handled.
24 * Set once at run-time. Returned by KeQueryMaximumProcessorCount(). */
25ULONG KeMaximumProcessors = MAXIMUM_PROCESSORS;
26
27/* Maximum number of logical processors that can be started
28 * (including dynamically) at run-time. If 0: do not perform checks. */
29ULONG KeNumprocSpecified = 0;
30
31/* Maximum number of logical processors that can be started
32 * at boot-time. If 0: do not perform checks. */
33ULONG KeBootprocSpecified = 0;
34
35#endif // CONFIG_SMP
36
37/* FUNCTIONS *****************************************************************/
38
42{
43 return KeActiveProcessors;
44}
ULONG_PTR KAFFINITY
Definition: compat.h:85
#define MAXIMUM_PROCESSORS
Definition: rwlock.h:5
CCHAR KeNumberProcessors
Definition: processor.c:19
KAFFINITY KeActiveProcessors
Definition: processor.c:16
KAFFINITY NTAPI KeQueryActiveProcessors(VOID)
Definition: processor.c:41
#define NTAPI
Definition: typedefs.h:36
uint32_t ULONG
Definition: typedefs.h:59
char CCHAR
Definition: typedefs.h:51