Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/include PR/54133: Sevan Janiyan: Binaries fail...
details: https://anonhg.NetBSD.org/src/rev/78ac2665fdbb
branches: trunk
changeset: 451081:78ac2665fdbb
user: christos <christos%NetBSD.org@localhost>
date: Sun May 05 18:13:16 2019 +0000
description:
PR/54133: Sevan Janiyan: Binaries fail to execute
Define M{IN,AX}_PAGE_SHIFT to cover all page possibilities
diffstat:
sys/arch/mips/include/vmparam.h | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (33 lines):
diff -r 0bfc7ea88ba1 -r 78ac2665fdbb sys/arch/mips/include/vmparam.h
--- a/sys/arch/mips/include/vmparam.h Sun May 05 17:24:00 2019 +0000
+++ b/sys/arch/mips/include/vmparam.h Sun May 05 18:13:16 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.61 2018/05/31 22:26:36 mrg Exp $ */
+/* $NetBSD: vmparam.h,v 1.62 2019/05/05 18:13:16 christos Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -50,10 +50,6 @@
/*
* Machine dependent VM constants for MIPS.
*/
-#if !defined(_RUMPKERNEL) && (defined(MODULAR) || defined(_MODULE))
-#define MAX_PAGE_SIZE 16384
-#define MIN_PAGE_SIZE 4096
-#endif
/*
* We normally use a 4K page but may use 16K on MIPS systems.
@@ -70,6 +66,12 @@
#define PAGE_SIZE (1 << PAGE_SHIFT)
#define PAGE_MASK (PAGE_SIZE - 1)
+#define MIN_PAGE_SHIFT 12
+#define MAX_PAGE_SHIFT 14
+
+#define MAX_PAGE_SIZE (1 << MAX_PAGE_SHIFT)
+#define MIN_PAGE_SIZE (1 << MIN_PAGE_SHIFT)
+
/*
* USRSTACK is the top (end) of the user stack.
*
Home |
Main Index |
Thread Index |
Old Index