diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2001-11-09 00:12:22 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2001-11-09 00:12:22 +0000 |
commit | a2c2f6758bc8f4b18f0594d4bc37b610b8f60c27 (patch) | |
tree | 0604ae015eef6cd81643dc3e7b4e9972b5083a08 /sys/arch/mvme88k | |
parent | 54954f08051231b8b623a0b365816cae80a66de0 (diff) |
Ouch, more variables declarations in .h files lacking ``extern'' safety
belts.
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r-- | sys/arch/mvme88k/ddb/db_interface.c | 4 | ||||
-rw-r--r-- | sys/arch/mvme88k/include/autoconf.h | 4 | ||||
-rw-r--r-- | sys/arch/mvme88k/include/db_machdep.h | 12 | ||||
-rw-r--r-- | sys/arch/mvme88k/mvme88k/autoconf.c | 5 |
4 files changed, 13 insertions, 12 deletions
diff --git a/sys/arch/mvme88k/ddb/db_interface.c b/sys/arch/mvme88k/ddb/db_interface.c index bffedc2b64a..53774b65eb3 100644 --- a/sys/arch/mvme88k/ddb/db_interface.c +++ b/sys/arch/mvme88k/ddb/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.16 2001/11/06 19:53:15 miod Exp $ */ +/* $OpenBSD: db_interface.c,v 1.17 2001/11/09 00:12:15 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1991 Carnegie Mellon University @@ -88,6 +88,8 @@ int quiet_db_read_bytes = 0; /* DB_REGISTERS ****/ /************************/ +db_regs_t ddb_regs; + /* * * If you really feel like understanding the following procedure and diff --git a/sys/arch/mvme88k/include/autoconf.h b/sys/arch/mvme88k/include/autoconf.h index 21db4c63254..1828521d20f 100644 --- a/sys/arch/mvme88k/include/autoconf.h +++ b/sys/arch/mvme88k/include/autoconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.h,v 1.8 2001/09/28 20:49:13 miod Exp $ */ +/* $OpenBSD: autoconf.h,v 1.9 2001/11/09 00:12:19 miod Exp $ */ /* * Copyright (c) 1999, Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -67,7 +67,7 @@ int always_match __P((struct device *, struct cfdata *, void *)); extern void *bootaddr; /* PA of boot device */ extern int bootpart; /* boot partition (disk) */ -struct device *bootdv; /* boot device */ +extern struct device *bootdv; /* boot device */ void *mapiodev __P((void *pa, int size)); void unmapiodev __P((void *kva, int size)); diff --git a/sys/arch/mvme88k/include/db_machdep.h b/sys/arch/mvme88k/include/db_machdep.h index c83f1934b03..dc61e1ea37b 100644 --- a/sys/arch/mvme88k/include/db_machdep.h +++ b/sys/arch/mvme88k/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.h,v 1.14 2001/11/06 00:30:38 art Exp $ */ +/* $OpenBSD: db_machdep.h,v 1.15 2001/11/09 00:12:19 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1991 Carnegie Mellon University @@ -50,11 +50,11 @@ #define ENTRY_ASM "tb0 0, r0, 132" #define DDB_ENTRY_TRAP_NO 132 -typedef vm_offset_t db_addr_t; -typedef int db_expr_t; -typedef struct m88100_saved_state db_regs_t; -db_regs_t ddb_regs; /* register state */ -#define DDB_REGS (&ddb_regs) +typedef vm_offset_t db_addr_t; +typedef int db_expr_t; +typedef struct m88100_saved_state db_regs_t; +extern db_regs_t ddb_regs; /* register state */ +#define DDB_REGS (&ddb_regs) /* * the low two bits of sxip, snip, sfip have valid bits diff --git a/sys/arch/mvme88k/mvme88k/autoconf.c b/sys/arch/mvme88k/mvme88k/autoconf.c index eed07e5a4bf..7e67d1a14dc 100644 --- a/sys/arch/mvme88k/mvme88k/autoconf.c +++ b/sys/arch/mvme88k/mvme88k/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.14 2001/09/28 20:49:17 miod Exp $ */ +/* $OpenBSD: autoconf.c,v 1.15 2001/11/09 00:12:21 miod Exp $ */ /* * Copyright (c) 1998 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -69,6 +69,7 @@ int cold = 1; /* 1 if still booting */ void *bootaddr; int bootpart; +struct device *bootdev; /* set by device drivers (if found) */ /* * called at boot time, configure all devices on the system. @@ -76,8 +77,6 @@ int bootpart; void cpu_configure() { - bootdv = NULL; /* set by device drivers (if found) */ - if (config_rootfound("mainbus", "mainbus") == 0) panic("no mainbus found"); |