The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=f05d399a376127685df6681ca53688fdfb119a3d
commit f05d399a376127685df6681ca53688fdfb119a3d Author: Konstantin Belousov <k...@freebsd.org> AuthorDate: 2025-06-28 11:59:24 +0000 Commit: Konstantin Belousov <k...@freebsd.org> CommitDate: 2025-07-14 22:03:28 +0000 amd64 pmap: do not hardcode 512GB Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D51085 --- sys/amd64/amd64/pmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index c3e3a91b20ec..15a812fefbaa 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -1745,7 +1745,8 @@ create_pagetables(vm_paddr_t *firstaddr) * Each NDMPML4E allows 512 GB, so limit to that, * and then readjust ndmpdp and ndmpdpphys. */ - printf("NDMPML4E limits system to %d GB\n", NDMPML4E * 512); + printf("NDMPML4E limits system to %lu GB\n", + (u_long)NDMPML4E * NBPML4 / 1024 / 1024 / 1024); Maxmem = atop(NDMPML4E * NBPML4); ndmpdpphys = NDMPML4E; ndmpdp = NDMPML4E * NPDEPG;