mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
Kernel: Hand out 64-bit addresses to userspace
This commit is contained in:
parent
5938d882d8
commit
f56ee10a13
Notes:
sideshowbarker
2024-07-18 08:48:11 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/f56ee10a13b Pull-request: https://github.com/SerenityOS/serenity/pull/8795 Reviewed-by: https://github.com/Hendiadyoin1
2 changed files with 2 additions and 2 deletions
|
@ -24,4 +24,4 @@ extern "C" FlatPtr kernel_base;
|
||||||
#define KERNEL_QUICKMAP_PD (KERNEL_PT1024_BASE + 0x7000)
|
#define KERNEL_QUICKMAP_PD (KERNEL_PT1024_BASE + 0x7000)
|
||||||
#define KERNEL_QUICKMAP_PER_CPU_BASE (KERNEL_PT1024_BASE + 0x8000)
|
#define KERNEL_QUICKMAP_PER_CPU_BASE (KERNEL_PT1024_BASE + 0x8000)
|
||||||
|
|
||||||
#define USER_RANGE_CEILING 0xBE000000
|
#define USER_RANGE_CEILING (kernel_base - 0x2000000)
|
||||||
|
|
|
@ -69,7 +69,7 @@ UNMAP_AFTER_INIT void PageDirectory::allocate_kernel_directory()
|
||||||
PageDirectory::PageDirectory(const RangeAllocator* parent_range_allocator)
|
PageDirectory::PageDirectory(const RangeAllocator* parent_range_allocator)
|
||||||
{
|
{
|
||||||
constexpr FlatPtr userspace_range_base = 0x00800000;
|
constexpr FlatPtr userspace_range_base = 0x00800000;
|
||||||
constexpr FlatPtr userspace_range_ceiling = USER_RANGE_CEILING;
|
FlatPtr userspace_range_ceiling = USER_RANGE_CEILING;
|
||||||
|
|
||||||
ScopedSpinLock lock(s_mm_lock);
|
ScopedSpinLock lock(s_mm_lock);
|
||||||
if (parent_range_allocator) {
|
if (parent_range_allocator) {
|
||||||
|
|
Loading…
Reference in a new issue