Date: Sat, 10 Jul 2021 11:47:11 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: fdc71fa112d6 - main - amd64 pmap: unexpand the NBPDR macro definition Message-ID: <202107101147.16ABlBTq048480@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=fdc71fa112d66c7c0aba9ff80adc7b8bb22ea6ca commit fdc71fa112d66c7c0aba9ff80adc7b8bb22ea6ca Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2021-07-10 11:07:41 +0000 Commit: Konstantin Belousov <kib@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); /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107101147.16ABlBTq048480>