git: fdc71fa112d6 - main - amd64 pmap: unexpand the NBPDR macro definition
Konstantin Belousov
kib at FreeBSD.org
Sat Jul 10 11:47:12 UTC 2021
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=fdc71fa112d66c7c0aba9ff80adc7b8bb22ea6ca
commit fdc71fa112d66c7c0aba9ff80adc7b8bb22ea6ca
Author: Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2021-07-10 11:07:41 +0000
Commit: Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2021-07-10 11:46:54 +0000
amd64 pmap: unexpand the NBPDR macro definition
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
---
sys/amd64/amd64/pmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 5e0b6d76ae0a..f8bd17dc6238 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -1554,7 +1554,7 @@ nkpt_init(vm_paddr_t addr)
#ifdef NKPT
pt_pages = NKPT;
#else
- pt_pages = howmany(addr, 1 << PDRSHIFT);
+ pt_pages = howmany(addr, NBPDR);
pt_pages += NKPDPE(pt_pages);
/*
More information about the dev-commits-src-main
mailing list