Module Name:    src
Committed By:   matt
Date:           Sat Mar  5 14:26:01 UTC 2011

Modified Files:
        src/sys/arch/mips/include: mips_param.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/mips/include/mips_param.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/mips_param.h
diff -u src/sys/arch/mips/include/mips_param.h:1.28 src/sys/arch/mips/include/mips_param.h:1.29
--- src/sys/arch/mips/include/mips_param.h:1.28	Sun Feb 20 07:45:47 2011
+++ src/sys/arch/mips/include/mips_param.h	Sat Mar  5 14:26:01 2011
@@ -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.
  */

Reply via email to