Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Update VM_DEFAULT_ADDRESS32_TOPDOWN to include guar...
details: https://anonhg.NetBSD.org/src/rev/75eb3785998b
branches: trunk
changeset: 354668:75eb3785998b
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Jun 24 13:43:36 2017 +0000
description:
Update VM_DEFAULT_ADDRESS32_TOPDOWN to include guard area.
diffstat:
sys/arch/amd64/include/vmparam.h | 4 ++--
sys/arch/mips/include/vmparam.h | 4 ++--
sys/arch/riscv/include/vmparam.h | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r f0e4ad14182c -r 75eb3785998b sys/arch/amd64/include/vmparam.h
--- a/sys/arch/amd64/include/vmparam.h Sat Jun 24 12:14:21 2017 +0000
+++ b/sys/arch/amd64/include/vmparam.h Sat Jun 24 13:43:36 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.42 2017/06/23 21:28:38 joerg Exp $ */
+/* $NetBSD: vmparam.h,v 1.43 2017/06/24 13:43:36 joerg Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -139,7 +139,7 @@
round_page((vaddr_t)(da) + (vsize_t)maxdmap)
#define VM_DEFAULT_ADDRESS32_TOPDOWN(da, sz) \
- trunc_page(USRSTACK32 - MAXSSIZ32 - (sz))
+ trunc_page(USRSTACK32 - MAXSSIZ32 - (sz) - user_stack_guard_size)
#define VM_DEFAULT_ADDRESS32_BOTTOMUP(da, sz) \
round_page((vaddr_t)(da) + (vsize_t)MAXDSIZ32)
diff -r f0e4ad14182c -r 75eb3785998b sys/arch/mips/include/vmparam.h
--- a/sys/arch/mips/include/vmparam.h Sat Jun 24 12:14:21 2017 +0000
+++ b/sys/arch/mips/include/vmparam.h Sat Jun 24 13:43:36 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.58 2017/06/23 21:28:38 joerg Exp $ */
+/* $NetBSD: vmparam.h,v 1.59 2017/06/24 13:43:36 joerg Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -190,7 +190,7 @@
round_page((vaddr_t)(da) + (vsize_t)maxdmap)
#define VM_DEFAULT_ADDRESS32_TOPDOWN(da, sz) \
- trunc_page(USRSTACK32 - MAXSSIZ32 - (sz))
+ trunc_page(USRSTACK32 - MAXSSIZ32 - (sz) - user_stack_guard_size)
#define VM_DEFAULT_ADDRESS32_BOTTOMUP(da, sz) \
round_page((vaddr_t)(da) + (vsize_t)MAXDSIZ32)
diff -r f0e4ad14182c -r 75eb3785998b sys/arch/riscv/include/vmparam.h
--- a/sys/arch/riscv/include/vmparam.h Sat Jun 24 12:14:21 2017 +0000
+++ b/sys/arch/riscv/include/vmparam.h Sat Jun 24 13:43:36 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.2 2017/06/23 21:28:38 joerg Exp $ */
+/* $NetBSD: vmparam.h,v 1.3 2017/06/24 13:43:36 joerg Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -142,7 +142,7 @@
round_page((vaddr_t)(da) + (vsize_t)maxdmap)
#define VM_DEFAULT_ADDRESS32_TOPDOWN(da, sz) \
- trunc_page(USRSTACK32 - MAXSSIZ32 - (sz))
+ trunc_page(USRSTACK32 - MAXSSIZ32 - (sz) - user_stack_guard_size)
#define VM_DEFAULT_ADDRESS32_BOTTOMUP(da, sz) \
round_page((vaddr_t)(da) + (vsize_t)MAXDSIZ32)
Home |
Main Index |
Thread Index |
Old Index