summaryrefslogtreecommitdiff
path: root/Kernel/Arch
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Arch')
-rw-r--r--Kernel/Arch/CPU.h24
-rw-r--r--Kernel/Arch/aarch64/CPU.h9
2 files changed, 33 insertions, 0 deletions
diff --git a/Kernel/Arch/CPU.h b/Kernel/Arch/CPU.h
new file mode 100644
index 0000000000..43ba63583d
--- /dev/null
+++ b/Kernel/Arch/CPU.h
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) 2018-2022, James Mintram <me@jamesrm.com>
+ * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+#include <AK/Platform.h>
+
+#if ARCH(X86_64) || ARCH(I386)
+# include <Kernel/Arch/x86/CPU.h>
+#elif ARCH(AARCH64)
+# include <Kernel/Arch/aarch64/CPU.h>
+#else
+# error "Unknown architecture"
+#endif
+
+namespace Kernel {
+
+struct RegisterState;
+
+}
diff --git a/Kernel/Arch/aarch64/CPU.h b/Kernel/Arch/aarch64/CPU.h
new file mode 100644
index 0000000000..7a59983909
--- /dev/null
+++ b/Kernel/Arch/aarch64/CPU.h
@@ -0,0 +1,9 @@
+/*
+ * Copyright (c) 2018-2022, James Mintram <me@jamesrm.com>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+#define PAGE_MASK (~(FlatPtr)0xfffu)