Reduce address space size for FreeBSD (#4318)

This commit is contained in:
Stephen Miller 2026-04-25 01:14:34 -05:00 committed by GitHub
parent 737d23b28b
commit 2c9eee1eb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,6 +45,9 @@ constexpr VAddr USER_MIN = 0x1000000000ULL;
#if defined(__linux__)
// Linux maps the shadPS4 executable around here, so limit the user maximum
constexpr VAddr USER_MAX = 0x54FFFFFFFFFFULL;
#elif defined(__FreeBSD__)
// FreeBSD address space is extremely volatile, keep this lower for safety.
constexpr VAddr USER_MAX = 0xFFFFFFFFFFFULL;
#else
constexpr VAddr USER_MAX = 0x5FFFFFFFFFFFULL;
#endif