If _KERNEL is not defined, force MACHINE to be "mips". Userland should be

using uname/sysctl to get this value.
This commit is contained in:
matt 2011-03-05 14:26:01 +00:00
parent a0882e35a9
commit 5152fa4e3d
1 changed files with 10 additions and 1 deletions

View File

@ -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>
@ -31,6 +31,15 @@
#error neither __MIPSEL__ nor __MIPSEB__ are defined.
#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.