Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-10]: src/sys/arch/sparc64/include Pull up following revision(s) (...
details: https://anonhg.NetBSD.org/src/rev/b5f5e7894cd1
branches: netbsd-10
changeset: 373422:b5f5e7894cd1
user: martin <martin%NetBSD.org@localhost>
date: Wed Feb 08 16:40:45 2023 +0000
description:
Pull up following revision(s) (requested by hgutch in ticket #71):
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 062dabb23a82 -r b5f5e7894cd1 sys/arch/sparc64/include/vmparam.h
--- a/sys/arch/sparc64/include/vmparam.h Wed Feb 08 16:38:01 2023 +0000
+++ b/sys/arch/sparc64/include/vmparam.h Wed Feb 08 16:40:45 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.42 2021/02/26 02:01:16 simonb Exp $ */
+/* $NetBSD: vmparam.h,v 1.42.18.1 2023/02/08 16:40:45 martin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -176,8 +176,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