git: 2b09d177bd05 - main - amd64: express KV4ADDR() using KV5ADDR()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 27 Jun 2025 05:43:33 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=2b09d177bd058ae1d8e03e1d65cf82ab351ae011
commit 2b09d177bd058ae1d8e03e1d65cf82ab351ae011
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-06-15 21:12:52 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-06-27 04:23:05 +0000
amd64: express KV4ADDR() using KV5ADDR()
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D51053
---
sys/amd64/include/pmap.h | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h
index da32b3b087b7..7d3e91bcd9b9 100644
--- a/sys/amd64/include/pmap.h
+++ b/sys/amd64/include/pmap.h
@@ -110,12 +110,7 @@
* Pte related macros. This is complicated by having to deal with
* the sign extension of the 48th bit.
*/
-#define KV4ADDR(l4, l3, l2, l1) ( \
- ((unsigned long)-1 << 47) | \
- ((unsigned long)(l4) << PML4SHIFT) | \
- ((unsigned long)(l3) << PDPSHIFT) | \
- ((unsigned long)(l2) << PDRSHIFT) | \
- ((unsigned long)(l1) << PAGE_SHIFT))
+#define KV4ADDR(l4, l3, l2, l1) KV5ADDR(-1, l4, l3, l2, l1)
#define KV5ADDR(l5, l4, l3, l2, l1) ( \
((unsigned long)-1 << 56) | \
((unsigned long)(l5) << PML5SHIFT) | \