Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-9]: src/sys/arch/sparc64/include Pull up following revision(s) (r...
details: https://anonhg.NetBSD.org/src/rev/86370b7dca72
branches: netbsd-9
changeset: 373428:86370b7dca72
user: martin <martin%NetBSD.org@localhost>
date: Wed Feb 08 16:42:12 2023 +0000
description:
Pull up following revision(s) (requested by hgutch in ticket #1588):
sys/arch/sparc64/include/vmparam.h: revision 1.43
Avoid using (1<<64)-1 for VM_MAX{,USER}_ADDRESS as rounding that up to
the next page boundary gives 0 and instead make the VA space end one
page earlier.
Fixes PR sparc64/57219.
diffstat:
sys/arch/sparc64/include/vmparam.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 43f3a516b137 -r 86370b7dca72 sys/arch/sparc64/include/vmparam.h
--- a/sys/arch/sparc64/include/vmparam.h Mon Feb 06 17:05:59 2023 +0000
+++ b/sys/arch/sparc64/include/vmparam.h Wed Feb 08 16:42:12 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.39 2018/09/03 16:29:28 riastradh Exp $ */
+/* $NetBSD: vmparam.h,v 1.39.4.1 2023/02/08 16:42:12 martin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -168,8 +168,8 @@
* User/kernel map constants.
*/
#define VM_MIN_ADDRESS ((vaddr_t)0)
-#define VM_MAX_ADDRESS ((vaddr_t)-1)
-#define VM_MAXUSER_ADDRESS ((vaddr_t)-1)
+#define VM_MAX_ADDRESS (((vaddr_t)(-1))&~PGOFSET)
+#define VM_MAXUSER_ADDRESS VM_MAX_ADDRESS
#define VM_MAXUSER_ADDRESS32 ((vaddr_t)(0x00000000ffffffffL&~PGOFSET))
#define VM_MIN_KERNEL_ADDRESS ((vaddr_t)KERNBASE)
Home |
Main Index |
Thread Index |
Old Index