Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/include Avoid using (1<<64)-1 for VM_MAX{,U...
details: https://anonhg.NetBSD.org/src/rev/6948650fd551
branches: trunk
changeset: 373402:6948650fd551
user: hgutch <hgutch%NetBSD.org@localhost>
date: Tue Feb 07 14:11:16 2023 +0000
description:
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 8678976ddbf2 -r 6948650fd551 sys/arch/sparc64/include/vmparam.h
--- a/sys/arch/sparc64/include/vmparam.h Tue Feb 07 09:25:51 2023 +0000
+++ b/sys/arch/sparc64/include/vmparam.h Tue Feb 07 14:11:16 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.43 2023/02/07 14:11:16 hgutch 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