defopt "options SUN4*", put #define for each of SUN4, SUN4C, SUN4M and SUN4U

into opt_arch_sparc.h and include this wherever they are used.
This commit is contained in:
darrenr 2001-12-04 00:53:18 +00:00
parent 666315fdb3
commit 8f8a0fb2c2
10 changed files with 50 additions and 11 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: files.sparc64,v 1.55 2001/11/20 12:56:39 lukem Exp $
# $NetBSD: files.sparc64,v 1.56 2001/12/04 00:53:18 darrenr Exp $
# @(#)files.sparc64 8.1 (Berkeley) 7/19/93
# sparc64-specific configuration info
@ -8,6 +8,8 @@ maxpartitions 8
maxusers 2 8 1024
defopt opt_sparc_arch.h SUN4U
#
# XXXXXXXXXXX
#

View File

@ -1,4 +1,4 @@
/* $NetBSD: bsd_openprom.h,v 1.2 2000/03/13 23:52:34 soren Exp $ */
/* $NetBSD: bsd_openprom.h,v 1.3 2001/12/04 00:53:19 darrenr Exp $ */
/*
* Copyright (c) 1992, 1993
@ -38,6 +38,10 @@
* @(#)bsd_openprom.h 8.1 (Berkeley) 6/11/93
*/
#if defined(_KERNEL_OPT)
#include "opt_sparc_arch.h"
#endif
/*
* Sun4m support by Aaron Brown, Harvard University.
* Changes Copyright (c) 1995 The President and Fellows of Harvard College.

View File

@ -1,4 +1,4 @@
/* $NetBSD: frame.h,v 1.9 2001/03/04 09:28:35 mrg Exp $ */
/* $NetBSD: frame.h,v 1.10 2001/12/04 00:53:19 darrenr Exp $ */
/*
* Copyright (c) 1992, 1993
@ -44,6 +44,10 @@
* @(#)frame.h 8.1 (Berkeley) 6/11/93
*/
#if defined(_KERNEL_OPT)
#include "opt_sparc_arch.h"
#endif
/*
* Sparc stack frame format.
*

View File

@ -1,4 +1,4 @@
/* $NetBSD: idprom.h,v 1.2 1998/09/05 23:57:26 eeh Exp $ */
/* $NetBSD: idprom.h,v 1.3 2001/12/04 00:53:19 darrenr Exp $ */
/*
* Copyright (c) 1993 Adam Glass
@ -31,6 +31,10 @@
* SUCH DAMAGE.
*/
#if defined(_KERNEL_OPT)
#include "opt_sparc_arch.h"
#endif
/*
* ID prom format. The ``host id'' is set up by taking the machine
* ID as the top byte and the hostid field as the remaining three.

View File

@ -1,4 +1,4 @@
/* $NetBSD: kbd.h,v 1.1.1.1 1998/06/20 04:58:51 eeh Exp $ */
/* $NetBSD: kbd.h,v 1.2 2001/12/04 00:53:19 darrenr Exp $ */
/*
* Copyright (c) 1992, 1993
@ -44,6 +44,10 @@
* @(#)kbd.h 8.1 (Berkeley) 6/11/93
*/
#if defined(_KERNEL_OPT)
#include "opt_sparc_arch.h"
#endif
/*
* Keyboard `registers'. (This should be called kbd_reg.h but we need to
* be compatible.)

View File

@ -1,4 +1,4 @@
/* $NetBSD: oldmon.h,v 1.1.1.1 1998/06/20 04:58:51 eeh Exp $ */
/* $NetBSD: oldmon.h,v 1.2 2001/12/04 00:53:19 darrenr Exp $ */
/*
* Copyright (C) 1985 Regents of the University of California
@ -37,6 +37,10 @@
#ifndef _MACHINE_OLDMON_H
#define _MACHINE_OLDMON_H
#if defined(_KERNEL_OPT)
#include "opt_sparc_arch.h"
#endif
/*
* Structures, constants and defines for access to the sun monitor.
* These are translated from the sun monitor header file "sunromvec.h".

View File

@ -1,4 +1,4 @@
/* $NetBSD: param.h,v 1.25 2001/05/30 12:28:51 mrg Exp $ */
/* $NetBSD: param.h,v 1.26 2001/12/04 00:53:19 darrenr Exp $ */
/*
* Copyright (c) 1992, 1993
@ -67,7 +67,9 @@
*
*/
#if defined(_KERNEL_OPT)
#include "opt_sparc_arch.h"
#endif
#define _MACHINE sparc64
#define MACHINE "sparc64"
@ -81,6 +83,9 @@
#define MID_MACHINE MID_SPARC
#endif
#ifdef _KERNEL_OPT
#include "opt_sparc_arch.h"
#endif
#ifdef _KERNEL /* XXX */
#ifndef _LOCORE /* XXX */
#include <machine/cpu.h> /* XXX */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pte.h,v 1.8 2001/08/30 09:32:23 mrg Exp $ */
/* $NetBSD: pte.h,v 1.9 2001/12/04 00:53:19 darrenr Exp $ */
/*
* Copyright (c) 1996-1999 Eduardo Horvath
@ -23,6 +23,10 @@
*
*/
#if defined(_KERNEL_OPT)
#include "opt_sparc_arch.h"
#endif
/*
* Address translation works as follows:
*

View File

@ -1,4 +1,4 @@
/* $NetBSD: types.h,v 1.17 2001/05/12 22:42:07 kleink Exp $ */
/* $NetBSD: types.h,v 1.18 2001/12/04 00:53:19 darrenr Exp $ */
/*
* Copyright (c) 1992, 1993
@ -51,6 +51,10 @@
#undef sun
#endif
#if defined(_KERNEL_OPT)
#include "opt_sparc_arch.h"
#endif
#include <sys/cdefs.h>
#include <machine/int_types.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpuvar.h,v 1.2 1999/11/06 20:18:13 eeh Exp $ */
/* $NetBSD: cpuvar.h,v 1.3 2001/12/04 00:53:20 darrenr Exp $ */
/*
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -39,6 +39,10 @@
#ifndef _sparc64_cpuvar_h
#define _sparc64_cpuvar_h
#if defined(_KERNEL_OPT)
#include "opt_sparc_arch.h"
#endif
#include <sys/device.h>
#include <sparc64/sparc64/cache.h> /* for cacheinfo */