[FREELDR] Hack AMD64 so it can boot in high mem (#8226)

Hack ReactOS AMD64 so we can boot on systems with higher ram amounts tested up to 128gb

JIRA report: CORE-20265
This commit is contained in:
Justin Miller 2025-07-03 12:47:34 -07:00 committed by GitHub
parent 24b0857a72
commit 83faff8706
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,7 +68,9 @@ typedef struct _FREELDR_MEMORY_DESCRIPTOR
#define MM_PAGE_SIZE 4096
#define MM_PAGE_MASK 0xFFF
#define MM_PAGE_SHIFT 12
#define MM_MAX_PAGE 0xFFFFFFFFF /* 36 bits for the PFN */
//HACK: ReactOS AMD64 can't handle the full memory range yet CORE-20265
//#define MM_MAX_PAGE 0xFFFFFFFFF /* 36 bits for the PFN */
#define MM_MAX_PAGE 0x1FFFFF
#define MM_MAX_PAGE_LOADER 0x3FFFF /* on x64 freeldr only maps 1 GB */
#define MM_SIZE_TO_PAGES(a) \