Now that MACHINE is defined in user-land in either

mips/include/mips_param.h or powerpc/include/param.h, stop
trying to re-define it in the port-specific param.h files
when _KERNEL isn't defined.
This commit is contained in:
he 2011-03-06 20:34:55 +00:00
parent fa5740cd0f
commit ac93dee5bb
7 changed files with 21 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: param.h,v 1.27 2011/02/08 20:20:09 rmind Exp $ */
/* $NetBSD: param.h,v 1.28 2011/03/06 20:34:57 he Exp $ */
/* $OpenBSD: param.h,v 1.9 1997/04/30 09:54:15 niklas Exp $ */
/*
@ -56,7 +56,9 @@
#define _MACHINE_ARCH mipsel
#define MACHINE_ARCH "mipsel"
#define _MACHINE arc
#ifdef _KERNEL
#define MACHINE "arc"
#endif
#define KERNBASE 0x80000000 /* start of kernel virtual */
#define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT)

View File

@ -1,4 +1,4 @@
/* $NetBSD: param.h,v 1.11 2010/08/01 06:13:19 kiyohara Exp $ */
/* $NetBSD: param.h,v 1.12 2011/03/06 20:34:57 he Exp $ */
/*-
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -42,7 +42,9 @@
/*
* Machine dependent constants for PowerPC (32-bit only currently)
*/
#ifdef _KERNEL
#define MACHINE "bebox"
#endif
#define __NO_FIXED_MSGBUF

View File

@ -1,4 +1,4 @@
/* $NetBSD: param.h,v 1.17 2011/02/08 20:20:11 rmind Exp $ */
/* $NetBSD: param.h,v 1.18 2011/03/06 20:34:57 he Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -40,7 +40,9 @@
#include <mips/mips_param.h>
#define _MACHINE cobalt
#ifdef _KERNEL
#define MACHINE "cobalt"
#endif
#define DEV_BSIZE 512
#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */

View File

@ -1,4 +1,4 @@
/* from $NetBSD: param.h,v 1.19 2011/02/08 20:20:21 rmind Exp $ */
/* from $NetBSD: param.h,v 1.20 2011/03/06 20:34:57 he Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -52,7 +52,9 @@
*/
#define _MACHINE newsmips
#ifdef _KERNEL
#define MACHINE "newsmips"
#endif
#define KERNBASE 0x80000000 /* start of kernel virtual */
#define KERNTEXTOFF 0x80001000 /* start of kernel text for kvm_mkdb */

View File

@ -1,4 +1,4 @@
/* $NetBSD: param.h,v 1.43 2011/02/20 07:50:25 matt Exp $ */
/* $NetBSD: param.h,v 1.44 2011/03/06 20:34:56 he Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -52,7 +52,9 @@
*/
#define _MACHINE pmax
#ifdef _KERNEL
#define MACHINE "pmax"
#endif
#define DEV_BSIZE 512
#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */

View File

@ -1,4 +1,4 @@
/* $NetBSD: param.h,v 1.8 2011/02/08 20:20:23 rmind Exp $ */
/* $NetBSD: param.h,v 1.9 2011/03/06 20:34:56 he Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -48,7 +48,9 @@
*/
#define _MACHINE sbmips
#ifdef _KERNEL
#define MACHINE "sbmips"
#endif
#define DEV_BSIZE 512
#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */

View File

@ -1,4 +1,4 @@
/* $NetBSD: param.h,v 1.13 2011/02/08 20:20:23 rmind Exp $ */
/* $NetBSD: param.h,v 1.14 2011/03/06 20:34:55 he Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -44,7 +44,9 @@
#include <mips/mips_param.h>
#define _MACHINE sgimips
#ifdef _KERNEL
#define MACHINE "sgimips"
#endif
#define DEV_BSIZE 512
#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */