The Pedigree Project
0.1
src
system
include
pedigree
kernel
processor
ProcessorInformation.h
1
/*
2
* Copyright (c) 2008-2014, Pedigree Developers
3
*
4
* Please see the CONTRIB file in the root of the source tree for a full
5
* list of contributors.
6
*
7
* Permission to use, copy, modify, and distribute this software for any
8
* purpose with or without fee is hereby granted, provided that the above
9
* copyright notice and this permission notice appear in all copies.
10
*
11
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18
*/
19
20
#ifndef KERNEL_PROCESSOR_PROCESSORINFORMATION_H
21
#define KERNEL_PROCESSOR_PROCESSORINFORMATION_H
22
#include "pedigree/kernel/processor/types.h"
23
24
#include <config.h>
25
30
typedef
size_t
ProcessorId
;
31
34
#ifndef _PROCESSOR_INFORMATION_ONLY_WANT_PROCESSORID
35
36
#if X86_COMMON
37
#include "pedigree/kernel/processor/x86_common/ProcessorInformation.h"
// IWYU pragma: export
38
#define PROCESSOR_SPECIFIC_NAME(x) X86Common##x
39
#elif ARM64
40
#include "pedigree/kernel/processor/arm64/ProcessorInformation.h"
// IWYU pragma: export
41
#define PROCESSOR_SPECIFIC_NAME(x) Arm64##x
42
#elif ARMV7
43
#include "pedigree/kernel/processor/armv7/ProcessorInformation.h"
// IWYU pragma: export
44
#define PROCESSOR_SPECIFIC_NAME(x) Armv7##x
45
#elif HOSTED
46
#include "pedigree/kernel/processor/hosted/ProcessorInformation.h"
// IWYU pragma: export
47
#define PROCESSOR_SPECIFIC_NAME(x) Hosted##x
48
#endif
49
50
// NOTE: This throws a compile-time error if this header is not adapted for
51
// the selected processor architecture
52
#if !defined(PROCESSOR_SPECIFIC_NAME)
53
#error Unknown processor architecture
54
#endif
55
59
// NOTE: If a newly added processor architecture does not supply all the
60
// needed types, you will get an error here
61
63
typedef
PROCESSOR_SPECIFIC_NAME(ProcessorInformation) ProcessorInformation;
64
67
#undef PROCESSOR_SPECIFIC_NAME
68
69
#else
70
#undef KERNEL_PROCESSOR_PROCESSORINFORMATION_H
71
#endif
72
73
#endif
ProcessorId
size_t ProcessorId
Definition
ProcessorInformation.h:30
Generated on Sat Oct 3 2026 06:38:07 for The Pedigree Project by
1.9.8