summaryrefslogtreecommitdiff
path: root/Kernel/API/MemoryLayout.h
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-12-19 19:36:42 +0200
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-12-22 00:02:36 -0800
commit5f4a67434cdd1c9b85e925a8815130b585bd548c (patch)
treed9164c2814d8b38bacc557afcc942ccf03a193bf /Kernel/API/MemoryLayout.h
parentfccd0432a13b17a85cea3dbd48ee7999159f31a9 (diff)
downloadserenity-5f4a67434cdd1c9b85e925a8815130b585bd548c.zip
Kernel: Move userspace virtual address range base to 0x10000
Now that the shared bottom 2 MiB virtual address mappings are gone userspace can use lower virtual addresses.
Diffstat (limited to 'Kernel/API/MemoryLayout.h')
-rw-r--r--Kernel/API/MemoryLayout.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Kernel/API/MemoryLayout.h b/Kernel/API/MemoryLayout.h
new file mode 100644
index 0000000000..97db070c10
--- /dev/null
+++ b/Kernel/API/MemoryLayout.h
@@ -0,0 +1,12 @@
+/*
+ * Copyright (c) 2021, Idan Horowitz <idan.horowitz@serenityos.org>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+#include <AK/Types.h>
+#include <Kernel/Sections.h>
+
+constexpr FlatPtr userspace_range_base = USER_RANGE_BASE;