Reduce system reserved space to 0x700000000 and map fixed on macOS.

This commit is contained in:
squidbus 2024-07-15 16:39:38 -07:00 committed by TheTurtle
parent f943ce2710
commit e2adbd75c3
3 changed files with 9 additions and 4 deletions

View file

@ -23,7 +23,12 @@ constexpr VAddr CODE_BASE_OFFSET = 0x100000000ULL;
constexpr VAddr SYSTEM_MANAGED_MIN = 0x00000400000ULL;
constexpr VAddr SYSTEM_MANAGED_MAX = 0x07FFFFBFFFULL;
constexpr VAddr SYSTEM_RESERVED_MIN = 0x800000000ULL;
#ifdef __APPLE__
// Can only comfortably reserve the first 0x700000000 of reserved space.
constexpr VAddr SYSTEM_RESERVED_MAX = 0xEFFFFFFFFULL;
#else
constexpr VAddr SYSTEM_RESERVED_MAX = 0xFFFFFFFFFULL;
#endif
constexpr VAddr USER_MIN = 0x1000000000ULL;
constexpr VAddr USER_MAX = 0xFBFFFFFFFFULL;