From 3d50eeeebb6aa40e38d6f87e6480235c917843f3 Mon Sep 17 00:00:00 2001 From: Stephen Miller Date: Sat, 3 May 2025 11:50:41 -0500 Subject: [PATCH] Increase address space upper bound Probably needs heavy testing, especially on Mac/Windows. This increases the address space, as needed to accommodate strange memory behaviors seen in UFC. --- src/core/address_space.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/address_space.h b/src/core/address_space.h index 7ccc2cd1e..ddd1a5e86 100644 --- a/src/core/address_space.h +++ b/src/core/address_space.h @@ -31,11 +31,11 @@ constexpr VAddr SYSTEM_RESERVED_MAX = 0xFBFFFFFFFULL; constexpr VAddr SYSTEM_RESERVED_MAX = 0xFFFFFFFFFULL; #endif constexpr VAddr USER_MIN = 0x1000000000ULL; -constexpr VAddr USER_MAX = 0xFBFFFFFFFFULL; +constexpr VAddr USER_MAX = 0xFFFFFFFFFFFULL; static constexpr size_t SystemManagedSize = SYSTEM_MANAGED_MAX - SYSTEM_MANAGED_MIN + 1; static constexpr size_t SystemReservedSize = SYSTEM_RESERVED_MAX - SYSTEM_RESERVED_MIN + 1; -static constexpr size_t UserSize = 1ULL << 40; +static constexpr size_t UserSize = USER_MAX - USER_MIN + 1; /** * Represents the user virtual address space backed by a dmem memory block