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 If _KERNEL is not defined, force MACHI...



details:   https://anonhg.NetBSD.org/src/rev/7d5dce803bd0
branches:  trunk
changeset: 762902:7d5dce803bd0
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Mar 05 14:26:01 2011 +0000

description:
If _KERNEL is not defined, force MACHINE to be "mips".  Userland should be
using uname/sysctl to get this value.

diffstat:

 sys/arch/mips/include/mips_param.h |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 284eea78c2a0 -r 7d5dce803bd0 sys/arch/mips/include/mips_param.h
--- a/sys/arch/mips/include/mips_param.h        Sat Mar 05 14:04:02 2011 +0000
+++ b/sys/arch/mips/include/mips_param.h        Sat Mar 05 14:26:01 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mips_param.h,v 1.28 2011/02/20 07:45:47 matt Exp $     */
+/*     $NetBSD: mips_param.h,v 1.29 2011/03/05 14:26:01 matt Exp $     */
 
 #ifdef _KERNEL
 #include <machine/cpu.h>
@@ -32,6 +32,15 @@
 #endif
 
 /*
+ * Userland code should be using uname/sysctl to get MACHINE so simply
+ * export a generic MACHINE of "mips"
+ */
+#ifndef _KERNEL
+#undef MACHINE
+#define MACHINE "mips"
+#endif
+
+/*
  * On mips, UPAGES is fixed by sys/arch/mips/mips/locore code
  * to be the number of per-process-wired kernel-stack pages/PTES.
  */



Home | Main Index | Thread Index | Old Index