Module Name: src
Committed By: christos
Date: Sun May 5 18:13:16 UTC 2019
Modified Files:
src/sys/arch/mips/include: vmparam.h
Log Message:
PR/54133: Sevan Janiyan: Binaries fail to execute
Define M{IN,AX}_PAGE_SHIFT to cover all page possibilities
To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/sys/arch/mips/include/vmparam.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/mips/include/vmparam.h
diff -u src/sys/arch/mips/include/vmparam.h:1.61 src/sys/arch/mips/include/vmparam.h:1.62
--- src/sys/arch/mips/include/vmparam.h:1.61 Thu May 31 18:26:36 2018
+++ src/sys/arch/mips/include/vmparam.h Sun May 5 14:13:16 2019
@@ -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.
*