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 Invert the MIPS-I non-4kB page size ch...



details:   https://anonhg.NetBSD.org/src/rev/c80ff7d41182
branches:  trunk
changeset: 937591:c80ff7d41182
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Aug 22 09:08:21 2020 +0000

description:
Invert the MIPS-I non-4kB page size check.  The previous check doesn't
fail if both MIPS1 and MIPS3_PLUS are defined.  Explictly check against
MIPS1.

diffstat:

 sys/arch/mips/include/locore.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r ac1a061be488 -r c80ff7d41182 sys/arch/mips/include/locore.h
--- a/sys/arch/mips/include/locore.h    Sat Aug 22 09:03:53 2020 +0000
+++ b/sys/arch/mips/include/locore.h    Sat Aug 22 09:08:21 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.h,v 1.115 2020/08/17 03:19:35 mrg Exp $ */
+/* $NetBSD: locore.h,v 1.116 2020/08/22 09:08:21 simonb Exp $ */
 
 /*
  * This file should not be included by MI code!!!
@@ -89,8 +89,8 @@
 #undef MIPS3_PLUS
 #endif
 
-#if !defined(MIPS3_PLUS) && (ENABLE_MIPS_8KB_PAGE + ENABLE_MIPS_16KB_PAGE) > 0
-#error MIPS1 does not support non-4KB page sizes.
+#if defined(MIPS1) && (ENABLE_MIPS_8KB_PAGE + ENABLE_MIPS_16KB_PAGE) > 0
+#error MIPS1 only supports a 4kB page size.
 #endif
 
 /* XXX some .S files look for MIPS3_PLUS */



Home | Main Index | Thread Index | Old Index