Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Centralize the declaration of booted_device and boo...
details: https://anonhg.NetBSD.org/src/rev/9e9d8b3061c3
branches: trunk
changeset: 570667:9e9d8b3061c3
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Oct 23 17:07:37 2004 +0000
description:
Centralize the declaration of booted_device and booted_partition.
diffstat:
sys/arch/acorn26/acorn26/autoconf.c | 6 ++----
sys/arch/acorn32/acorn32/autoconf.c | 6 ++----
sys/arch/algor/algor/autoconf.c | 7 ++-----
sys/arch/alpha/alpha/autoconf.c | 6 ++----
sys/arch/alpha/include/autoconf.h | 3 +--
sys/arch/amd64/amd64/autoconf.c | 7 ++-----
sys/arch/amiga/amiga/autoconf.c | 6 ++----
sys/arch/amigappc/include/powerpc.h | 4 +---
sys/arch/arc/arc/autoconf.c | 5 ++---
sys/arch/atari/atari/autoconf.c | 7 ++-----
sys/arch/bebox/bebox/autoconf.c | 7 ++-----
sys/arch/bebox/include/powerpc.h | 4 +---
sys/arch/cats/cats/autoconf.c | 7 ++-----
sys/arch/cesfic/cesfic/autoconf.c | 7 ++-----
sys/arch/cobalt/cobalt/autoconf.c | 7 ++-----
sys/arch/evbarm/evbarm/autoconf.c | 7 ++-----
sys/arch/evbmips/alchemy/autoconf.c | 7 ++-----
sys/arch/evbmips/malta/autoconf.c | 7 ++-----
sys/arch/evbppc/ev64260/autoconf.c | 7 ++-----
sys/arch/evbppc/explora/autoconf.c | 7 ++-----
sys/arch/evbppc/walnut/autoconf.c | 7 ++-----
sys/arch/hp300/hp300/autoconf.c | 8 ++------
sys/arch/hp700/hp700/autoconf.c | 7 ++-----
sys/arch/hpcarm/hpcarm/autoconf.c | 7 ++-----
sys/arch/hpcmips/hpcmips/autoconf.c | 6 ++----
sys/arch/hpcsh/hpcsh/autoconf.c | 6 ++----
sys/arch/ibmnws/ibmnws/autoconf.c | 5 +----
sys/arch/ibmnws/include/powerpc.h | 4 +---
sys/arch/luna68k/luna68k/autoconf.c | 11 ++---------
sys/arch/mac68k/mac68k/autoconf.c | 7 ++-----
sys/arch/macppc/include/powerpc.h | 4 +---
sys/arch/macppc/macppc/autoconf.c | 6 ++----
sys/arch/mipsco/mipsco/autoconf.c | 6 ++----
sys/arch/mvme68k/include/autoconf.h | 4 +---
sys/arch/mvme68k/mvme68k/autoconf.c | 6 ++----
sys/arch/mvmeppc/include/powerpc.h | 4 +---
sys/arch/mvmeppc/mvmeppc/autoconf.c | 7 ++-----
sys/arch/netwinder/netwinder/autoconf.c | 7 ++-----
sys/arch/news68k/news68k/autoconf.c | 7 ++-----
sys/arch/newsmips/newsmips/autoconf.c | 7 ++-----
sys/arch/next68k/next68k/autoconf.c | 5 ++---
sys/arch/ofppc/include/powerpc.h | 4 +---
sys/arch/ofppc/ofppc/autoconf.c | 6 ++----
sys/arch/pc532/pc532/autoconf.c | 5 ++---
sys/arch/pdp10/pdp10/autoconf.c | 5 +----
sys/arch/pmax/pmax/autoconf.c | 7 +++----
sys/arch/pmppc/include/powerpc.h | 4 +---
sys/arch/pmppc/pmppc/autoconf.c | 7 ++-----
sys/arch/powerpc/ibm4xx/ibm4xxgpx_autoconf.c | 7 ++-----
sys/arch/prep/include/powerpc.h | 4 +---
sys/arch/prep/prep/autoconf.c | 7 ++-----
sys/arch/sandpoint/include/powerpc.h | 4 +---
sys/arch/sandpoint/sandpoint/autoconf.c | 7 ++-----
sys/arch/sbmips/sbmips/autoconf.c | 7 ++-----
sys/arch/sgimips/sgimips/autoconf.c | 7 +++----
sys/arch/sh5/sh5/autoconf.c | 5 ++---
sys/arch/shark/shark/autoconf.c | 7 ++-----
sys/arch/sparc/sparc/autoconf.c | 6 ++----
sys/arch/sparc64/sparc64/autoconf.c | 6 ++----
sys/arch/vax/vax/autoconf.c | 6 ++----
sys/arch/x68k/x68k/autoconf.c | 8 ++------
sys/arch/xen/i386/autoconf.c | 7 ++-----
62 files changed, 113 insertions(+), 268 deletions(-)
diffs (truncated from 1580 to 300 lines):
diff -r 4098deedd43e -r 9e9d8b3061c3 sys/arch/acorn26/acorn26/autoconf.c
--- a/sys/arch/acorn26/acorn26/autoconf.c Sat Oct 23 16:17:56 2004 +0000
+++ b/sys/arch/acorn26/acorn26/autoconf.c Sat Oct 23 17:07:37 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.4 2003/07/14 22:48:19 lukem Exp $ */
+/* $NetBSD: autoconf.c,v 1.5 2004/10/23 17:07:37 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999 Ben Harris
* All rights reserved.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.4 2003/07/14 22:48:19 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.5 2004/10/23 17:07:37 thorpej Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -41,8 +41,6 @@
#include <machine/irq.h>
#include <machine/machdep.h>
-struct device *booted_device;
-
void
cpu_configure()
{
diff -r 4098deedd43e -r 9e9d8b3061c3 sys/arch/acorn32/acorn32/autoconf.c
--- a/sys/arch/acorn32/acorn32/autoconf.c Sat Oct 23 16:17:56 2004 +0000
+++ b/sys/arch/acorn32/acorn32/autoconf.c Sat Oct 23 17:07:37 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.6 2003/07/14 22:48:24 lukem Exp $ */
+/* $NetBSD: autoconf.c,v 1.7 2004/10/23 17:07:38 thorpej Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.6 2003/07/14 22:48:24 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.7 2004/10/23 17:07:38 thorpej Exp $");
#include "opt_md.h"
@@ -61,8 +61,6 @@
#include "podulebus.h"
-int booted_partition;
-struct device *booted_device;
extern char *booted_kernel;
extern dev_t dumpdev;
diff -r 4098deedd43e -r 9e9d8b3061c3 sys/arch/algor/algor/autoconf.c
--- a/sys/arch/algor/algor/autoconf.c Sat Oct 23 16:17:56 2004 +0000
+++ b/sys/arch/algor/algor/autoconf.c Sat Oct 23 17:07:37 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.3 2003/07/14 22:57:47 lukem Exp $ */
+/* $NetBSD: autoconf.c,v 1.4 2004/10/23 17:07:38 thorpej Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.3 2003/07/14 22:57:47 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.4 2004/10/23 17:07:38 thorpej Exp $");
#include "opt_algor_p4032.h"
#include "opt_algor_p5064.h"
@@ -53,9 +53,6 @@
#include <machine/autoconf.h>
#include <machine/intr.h>
-struct device *booted_device;
-int booted_partition;
-
void
cpu_configure(void)
{
diff -r 4098deedd43e -r 9e9d8b3061c3 sys/arch/alpha/alpha/autoconf.c
--- a/sys/arch/alpha/alpha/autoconf.c Sat Oct 23 16:17:56 2004 +0000
+++ b/sys/arch/alpha/alpha/autoconf.c Sat Oct 23 17:07:37 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.40 2003/08/07 16:26:31 agc Exp $ */
+/* $NetBSD: autoconf.c,v 1.41 2004/10/23 17:07:38 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -42,7 +42,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.40 2003/08/07 16:26:31 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.41 2004/10/23 17:07:38 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -60,8 +60,6 @@
#include <machine/cpuconf.h>
#include <machine/intr.h>
-struct device *booted_device;
-int booted_partition;
struct bootdev_data *bootdev_data;
void parse_prom_bootdev __P((void));
diff -r 4098deedd43e -r 9e9d8b3061c3 sys/arch/alpha/include/autoconf.h
--- a/sys/arch/alpha/include/autoconf.h Sat Oct 23 16:17:56 2004 +0000
+++ b/sys/arch/alpha/include/autoconf.h Sat Oct 23 17:07:37 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.h,v 1.20 2003/03/22 14:26:41 simonb Exp $ */
+/* $NetBSD: autoconf.h,v 1.21 2004/10/23 17:07:38 thorpej Exp $ */
/*
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -108,7 +108,6 @@
};
#ifdef _KERNEL
-extern int booted_partition;
extern struct bootdev_data *bootdev_data;
extern struct bootinfo_kernel bootinfo;
diff -r 4098deedd43e -r 9e9d8b3061c3 sys/arch/amd64/amd64/autoconf.c
--- a/sys/arch/amd64/amd64/autoconf.c Sat Oct 23 16:17:56 2004 +0000
+++ b/sys/arch/amd64/amd64/autoconf.c Sat Oct 23 17:07:37 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.10 2004/10/20 04:20:05 thorpej Exp $ */
+/* $NetBSD: autoconf.c,v 1.11 2004/10/23 17:07:38 thorpej Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.10 2004/10/20 04:20:05 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.11 2004/10/23 17:07:38 thorpej Exp $");
#include "opt_multiprocessor.h"
@@ -73,9 +73,6 @@
#include <machine/bios32.h>
#endif
-struct device *booted_device;
-int booted_partition;
-
/*
* Determine i/o configuration for a machine.
*/
diff -r 4098deedd43e -r 9e9d8b3061c3 sys/arch/amiga/amiga/autoconf.c
--- a/sys/arch/amiga/amiga/autoconf.c Sat Oct 23 16:17:56 2004 +0000
+++ b/sys/arch/amiga/amiga/autoconf.c Sat Oct 23 17:07:37 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.92 2003/10/27 09:56:56 mhitch Exp $ */
+/* $NetBSD: autoconf.c,v 1.93 2004/10/23 17:07:38 thorpej Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.92 2003/10/27 09:56:56 mhitch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.93 2004/10/23 17:07:38 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -55,8 +55,6 @@
#include <sys/kernel.h>
u_long boot_partition;
-struct device *booted_device;
-int booted_partition;
int amiga_realconfig;
diff -r 4098deedd43e -r 9e9d8b3061c3 sys/arch/amigappc/include/powerpc.h
--- a/sys/arch/amigappc/include/powerpc.h Sat Oct 23 16:17:56 2004 +0000
+++ b/sys/arch/amigappc/include/powerpc.h Sat Oct 23 17:07:37 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: powerpc.h,v 1.2 2000/06/01 00:49:59 matt Exp $ */
+/* $NetBSD: powerpc.h,v 1.3 2004/10/23 17:07:38 thorpej Exp $ */
/*
* Copyright (C) 1996 Wolfgang Solfrank.
@@ -52,6 +52,4 @@
void ofrootfound __P((void));
-extern int booted_partition;
-
#endif /* _MACHINE_POWERPC_H_ */
diff -r 4098deedd43e -r 9e9d8b3061c3 sys/arch/arc/arc/autoconf.c
--- a/sys/arch/arc/arc/autoconf.c Sat Oct 23 16:17:56 2004 +0000
+++ b/sys/arch/arc/arc/autoconf.c Sat Oct 23 17:07:37 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.21 2003/08/07 16:26:47 agc Exp $ */
+/* $NetBSD: autoconf.c,v 1.22 2004/10/23 17:07:38 thorpej Exp $ */
/* $OpenBSD: autoconf.c,v 1.9 1997/05/18 13:45:20 pefo Exp $ */
/*
@@ -88,7 +88,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.21 2003/08/07 16:26:47 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.22 2004/10/23 17:07:38 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -119,7 +119,6 @@
* the configuration process, and are used in initializing
* the machine.
*/
-struct device *booted_device;
struct bootdev_data *bootdev_data;
/*
diff -r 4098deedd43e -r 9e9d8b3061c3 sys/arch/atari/atari/autoconf.c
--- a/sys/arch/atari/atari/autoconf.c Sat Oct 23 16:17:56 2004 +0000
+++ b/sys/arch/atari/atari/autoconf.c Sat Oct 23 17:07:37 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.46 2003/07/15 01:19:42 lukem Exp $ */
+/* $NetBSD: autoconf.c,v 1.47 2004/10/23 17:07:38 thorpej Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.46 2003/07/15 01:19:42 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.47 2004/10/23 17:07:38 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -50,9 +50,6 @@
int mbprint __P((void *, const char *));
int mbmatch __P((struct device *, struct cfdata *, void *));
-struct device *booted_device;
-int booted_partition;
-
int atari_realconfig;
#include <sys/kernel.h>
diff -r 4098deedd43e -r 9e9d8b3061c3 sys/arch/bebox/bebox/autoconf.c
--- a/sys/arch/bebox/bebox/autoconf.c Sat Oct 23 16:17:56 2004 +0000
+++ b/sys/arch/bebox/bebox/autoconf.c Sat Oct 23 17:07:37 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.13 2003/08/07 16:27:08 agc Exp $ */
+/* $NetBSD: autoconf.c,v 1.14 2004/10/23 17:07:38 thorpej Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.13 2003/08/07 16:27:08 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.14 2004/10/23 17:07:38 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -57,9 +57,6 @@
#include <machine/intr.h>
#include <powerpc/pte.h>
-struct device *booted_device;
-int booted_partition;
-
void findroot __P((void));
/*
diff -r 4098deedd43e -r 9e9d8b3061c3 sys/arch/bebox/include/powerpc.h
--- a/sys/arch/bebox/include/powerpc.h Sat Oct 23 16:17:56 2004 +0000
+++ b/sys/arch/bebox/include/powerpc.h Sat Oct 23 17:07:37 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: powerpc.h,v 1.4 2000/06/01 00:49:59 matt Exp $ */
+/* $NetBSD: powerpc.h,v 1.5 2004/10/23 17:07:38 thorpej Exp $ */
/*
* Copyright (C) 1996 Wolfgang Solfrank.
@@ -48,6 +48,4 @@
void ppc_exit __P((void)) __attribute__((__noreturn__));
void ppc_boot __P((char *bootspec)) __attribute__((__noreturn__));
-extern int booted_partition;
-
#endif /* _MACHINE_POWERPC_H_ */
diff -r 4098deedd43e -r 9e9d8b3061c3 sys/arch/cats/cats/autoconf.c
--- a/sys/arch/cats/cats/autoconf.c Sat Oct 23 16:17:56 2004 +0000
+++ b/sys/arch/cats/cats/autoconf.c Sat Oct 23 17:07:37 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.6 2003/07/15 01:29:18 lukem Exp $ */
Home |
Main Index |
Thread Index |
Old Index