summaryrefslogtreecommitdiff
path: root/Kernel/Sections.h
diff options
context:
space:
mode:
authorTimon Kruiper <timonkruiper@gmail.com>2023-01-10 10:34:25 +0100
committerLinus Groh <mail@linusgroh.de>2023-01-24 14:54:44 +0000
commit33581d5c447e29622ba0a26f691e20b8cc03af52 (patch)
tree4d075e5bb037fa91354063c35687972ee636f645 /Kernel/Sections.h
parent95992a255eeadfa8a932d117370148a1f03dfdc8 (diff)
downloadserenity-33581d5c447e29622ba0a26f691e20b8cc03af52.zip
Kernel: Add KERNEL_MAPPING_BASE to Sections.h and use it in Prekernel
Diffstat (limited to 'Kernel/Sections.h')
-rw-r--r--Kernel/Sections.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Sections.h b/Kernel/Sections.h
index 9142dc6ccc..37593b1aca 100644
--- a/Kernel/Sections.h
+++ b/Kernel/Sections.h
@@ -15,6 +15,8 @@
#define READONLY_AFTER_INIT __attribute__((section(".ro_after_init")))
#define UNMAP_AFTER_INIT NEVER_INLINE __attribute__((section(".unmap_after_init")))
+#define KERNEL_MAPPING_BASE 0x2000000000
+
#define KERNEL_PD_END (kernel_mapping_base + KERNEL_PD_SIZE)
#define KERNEL_PT1024_BASE (kernel_mapping_base + 0x3FE00000)