Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Fix -fno-common fallout.
details: https://anonhg.NetBSD.org/src/rev/70eb521a5cce
branches: trunk
changeset: 780548:70eb521a5cce
user: matt <matt%NetBSD.org@localhost>
date: Sat Jul 28 23:08:56 2012 +0000
description:
Fix -fno-common fallout.
diffstat:
sys/arch/algor/include/intr.h | 6 ++--
sys/arch/arc/arc/machdep.c | 7 +----
sys/arch/cobalt/cobalt/machdep.c | 7 +----
sys/arch/emips/emips/machdep.c | 8 +-----
sys/arch/ews4800mips/ews4800mips/machdep.c | 15 +------------
sys/arch/hpcmips/hpcmips/machdep.c | 5 +--
sys/arch/ibmnws/ibmnws/machdep.c | 5 ++-
sys/arch/mipsco/mipsco/machdep.c | 8 +-----
sys/arch/newsmips/dev/zs.c | 6 +++-
sys/arch/newsmips/include/z8530var.h | 4 +-
sys/arch/newsmips/newsmips/cpu_cons.c | 5 +--
sys/arch/newsmips/newsmips/machdep.c | 7 +----
sys/arch/ofppc/ofppc/machdep.c | 8 +++---
sys/arch/pmax/pmax/machdep.c | 5 +--
sys/arch/powerpc/include/cpu.h | 3 +-
sys/arch/powerpc/include/oea/pmap.h | 6 ++++-
sys/arch/powerpc/oea/pmap.c | 31 +++++++++++++++--------------
sys/arch/powerpc/oea/pmap_kernel.c | 14 ++++++++++--
sys/arch/powerpc/pic/pic_prepivr.c | 8 +++---
sys/arch/sandpoint/sandpoint/autoconf.c | 6 +---
sys/arch/sbmips/sbmips/machdep.c | 7 +----
sys/arch/sgimips/sgimips/machdep.c | 7 +----
22 files changed, 78 insertions(+), 100 deletions(-)
diffs (truncated from 658 to 300 lines):
diff -r fd406e2653f3 -r 70eb521a5cce sys/arch/algor/include/intr.h
--- a/sys/arch/algor/include/intr.h Sat Jul 28 23:06:30 2012 +0000
+++ b/sys/arch/algor/include/intr.h Sat Jul 28 23:08:56 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.h,v 1.15 2011/07/09 16:03:01 matt Exp $ */
+/* $NetBSD: intr.h,v 1.16 2012/07/28 23:08:56 matt Exp $ */
/*-
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -49,10 +49,10 @@
};
extern struct evcnt mips_int5_evcnt;
+extern void *(*algor_intr_establish)(int, int (*)(void *), void *);
+extern void (*algor_intr_disestablish)(void *);
void intr_init(void);
-void *(*algor_intr_establish)(int, int (*)(void *), void *);
-void (*algor_intr_disestablish)(void *);
#endif /* _KERNEL */
#endif /* ! _ALGOR_INTR_H_ */
diff -r fd406e2653f3 -r 70eb521a5cce sys/arch/arc/arc/machdep.c
--- a/sys/arch/arc/arc/machdep.c Sat Jul 28 23:06:30 2012 +0000
+++ b/sys/arch/arc/arc/machdep.c Sat Jul 28 23:08:56 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.125 2012/07/28 19:08:22 matt Exp $ */
+/* $NetBSD: machdep.c,v 1.126 2012/07/28 23:08:56 matt Exp $ */
/* $OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $ */
/*
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.125 2012/07/28 19:08:22 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.126 2012/07/28 23:08:56 matt Exp $");
#include "opt_ddb.h"
#include "opt_ddbparam.h"
@@ -121,9 +121,6 @@
#endif
#endif /* NCOM */
-/* Our exported CPU info; we can have only one. */
-struct cpu_info cpu_info_store;
-
/* maps for VM objects */
struct vm_map *phys_map = NULL;
diff -r fd406e2653f3 -r 70eb521a5cce sys/arch/cobalt/cobalt/machdep.c
--- a/sys/arch/cobalt/cobalt/machdep.c Sat Jul 28 23:06:30 2012 +0000
+++ b/sys/arch/cobalt/cobalt/machdep.c Sat Jul 28 23:08:56 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.113 2012/07/28 19:08:22 matt Exp $ */
+/* $NetBSD: machdep.c,v 1.114 2012/07/28 23:08:56 matt Exp $ */
/*-
* Copyright (c) 2006 Izumi Tsutsui. All rights reserved.
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.113 2012/07/28 19:08:22 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.114 2012/07/28 23:08:56 matt Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -93,9 +93,6 @@
#include <sys/exec_elf.h>
#endif
-/* Our exported CPU info; we can have only one. */
-struct cpu_info cpu_info_store;
-
/* Maps for VM objects. */
struct vm_map *phys_map = NULL;
diff -r fd406e2653f3 -r 70eb521a5cce sys/arch/emips/emips/machdep.c
--- a/sys/arch/emips/emips/machdep.c Sat Jul 28 23:06:30 2012 +0000
+++ b/sys/arch/emips/emips/machdep.c Sat Jul 28 23:08:56 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.6 2012/01/27 18:52:53 para Exp $ */
+/* $NetBSD: machdep.c,v 1.7 2012/07/28 23:08:56 matt Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.6 2012/01/27 18:52:53 para Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.7 2012/07/28 23:08:56 matt Exp $");
#include "opt_ddb.h"
@@ -86,9 +86,6 @@
#include "ksyms.h"
-/* Our exported CPU info; we can have only one. */
-struct cpu_info cpu_info_store;
-
/*
* Extent map to manage I/O register space. We allocate storage for
* 32 regions in the map. iomap_ex_malloc_safe will indicate that it's
@@ -105,7 +102,6 @@
int systype; /* mother board type */
char *bootinfo = NULL; /* pointer to bootinfo structure */
int cpuspeed = 30; /* approx # instr per usec. */
-int physmem; /* max supported memory, changes to actual */
intptr_t physmem_boardmax; /* {model,SIMM}-specific bound on physmem */
int mem_cluster_cnt;
phys_ram_seg_t mem_clusters[VM_PHYSSEG_MAX];
diff -r fd406e2653f3 -r 70eb521a5cce sys/arch/ews4800mips/ews4800mips/machdep.c
--- a/sys/arch/ews4800mips/ews4800mips/machdep.c Sat Jul 28 23:06:30 2012 +0000
+++ b/sys/arch/ews4800mips/ews4800mips/machdep.c Sat Jul 28 23:08:56 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.24 2011/02/20 07:55:20 matt Exp $ */
+/* $NetBSD: machdep.c,v 1.25 2012/07/28 23:08:56 matt Exp $ */
/*-
* Copyright (c) 2001, 2004, 2005 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.24 2011/02/20 07:55:20 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.25 2012/07/28 23:08:56 matt Exp $");
#include "opt_ddb.h"
@@ -69,9 +69,6 @@
vsize_t kseg2iobufsize; /* to reserve PTEs for KSEG2 I/O space */
-/* our exported CPU info */
-struct cpu_info cpu_info_store;
-
/* maps for VM objects */
struct vm_map *phys_map;
@@ -98,14 +95,6 @@
* the firmware directly and have to clear BSS here.
*/
memset(edata, 0, end - edata);
- /*
- * XXX
- * lwp0 and cpu_info_store are allocated in BSS
- * and initialized before mach_init() is called,
- * so restore them again.
- */
- lwp0.l_cpu = &cpu_info_store;
- cpu_info_store.ci_curlwp = &lwp0;
}
/* Setup early-console with BIOS ROM routines */
diff -r fd406e2653f3 -r 70eb521a5cce sys/arch/hpcmips/hpcmips/machdep.c
--- a/sys/arch/hpcmips/hpcmips/machdep.c Sat Jul 28 23:06:30 2012 +0000
+++ b/sys/arch/hpcmips/hpcmips/machdep.c Sat Jul 28 23:08:56 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.115 2012/07/28 19:08:23 matt Exp $ */
+/* $NetBSD: machdep.c,v 1.116 2012/07/28 23:08:56 matt Exp $ */
/*-
* Copyright (c) 1999 Shin Takemura, All rights reserved.
@@ -69,7 +69,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.115 2012/07/28 19:08:23 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.116 2012/07/28 23:08:56 matt Exp $");
#include "opt_vr41xx.h"
#include "opt_tx39xx.h"
@@ -153,7 +153,6 @@
/* the following is used externally (sysctl_hw) */
char hpcmips_cpuname[40]; /* set CPU depend xx_init() */
-struct cpu_info cpu_info_store; /* only one CPU */
int cpuspeed = 1; /* approx # instr per usec. */
/* CPU core switch table */
diff -r fd406e2653f3 -r 70eb521a5cce sys/arch/ibmnws/ibmnws/machdep.c
--- a/sys/arch/ibmnws/ibmnws/machdep.c Sat Jul 28 23:06:30 2012 +0000
+++ b/sys/arch/ibmnws/ibmnws/machdep.c Sat Jul 28 23:08:56 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.16 2011/06/30 00:52:56 matt Exp $ */
+/* $NetBSD: machdep.c,v 1.17 2012/07/28 23:11:00 matt Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.16 2011/06/30 00:52:56 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.17 2012/07/28 23:11:00 matt Exp $");
#include "opt_compat_netbsd.h"
@@ -76,6 +76,7 @@
void initppc(u_long, u_long, u_int, void *);
void dumpsys(void);
vaddr_t prep_intr_reg; /* PReP interrupt vector register */
+uint32_t prep_intr_reg_off;
#define OFMEMREGIONS 32
struct mem_region physmemr[OFMEMREGIONS], availmemr[OFMEMREGIONS];
diff -r fd406e2653f3 -r 70eb521a5cce sys/arch/mipsco/mipsco/machdep.c
--- a/sys/arch/mipsco/mipsco/machdep.c Sat Jul 28 23:06:30 2012 +0000
+++ b/sys/arch/mipsco/mipsco/machdep.c Sat Jul 28 23:08:56 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.75 2012/07/28 19:08:24 matt Exp $ */
+/* $NetBSD: machdep.c,v 1.76 2012/07/28 23:08:56 matt Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.75 2012/07/28 19:08:24 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.76 2012/07/28 23:08:56 matt Exp $");
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
@@ -99,9 +99,6 @@
#include "com.h" /* XXX */
#include "ksyms.h"
-/* Our exported CPU info; we can have only one. */
-struct cpu_info cpu_info_store;
-
/* maps for VM objects */
struct vm_map *phys_map = NULL;
@@ -152,7 +149,6 @@
.clkinit = NULL,
};
-struct consdev *cn_tab = NULL;
extern struct consdev consdev_prom;
extern struct consdev consdev_zs;
diff -r fd406e2653f3 -r 70eb521a5cce sys/arch/newsmips/dev/zs.c
--- a/sys/arch/newsmips/dev/zs.c Sat Jul 28 23:06:30 2012 +0000
+++ b/sys/arch/newsmips/dev/zs.c Sat Jul 28 23:08:56 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: zs.c,v 1.26 2010/06/26 03:44:49 tsutsui Exp $ */
+/* $NetBSD: zs.c,v 1.27 2012/07/28 23:08:57 matt Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.26 2010/06/26 03:44:49 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.27 2012/07/28 23:08:57 matt Exp $");
#include "opt_ddb.h"
@@ -56,6 +56,8 @@
#include "ioconf.h"
+void (*zs_delay)(void);
+
#define ZS_DELAY() (*zs_delay)()
/*
diff -r fd406e2653f3 -r 70eb521a5cce sys/arch/newsmips/include/z8530var.h
--- a/sys/arch/newsmips/include/z8530var.h Sat Jul 28 23:06:30 2012 +0000
+++ b/sys/arch/newsmips/include/z8530var.h Sat Jul 28 23:08:56 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: z8530var.h,v 1.11 2010/06/26 03:49:52 tsutsui Exp $ */
+/* $NetBSD: z8530var.h,v 1.12 2012/07/28 23:08:57 matt Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -112,7 +112,7 @@
int zs_print(void *, const char *);
int zshard(void *);
int zs_get_speed(struct zs_chanstate *);
-void (*zs_delay)(void);
+extern void (*zs_delay)(void);
#define splzs() splserial()
#define IPL_ZS IPL_SERIAL
diff -r fd406e2653f3 -r 70eb521a5cce sys/arch/newsmips/newsmips/cpu_cons.c
--- a/sys/arch/newsmips/newsmips/cpu_cons.c Sat Jul 28 23:06:30 2012 +0000
+++ b/sys/arch/newsmips/newsmips/cpu_cons.c Sat Jul 28 23:08:56 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_cons.c,v 1.12 2011/02/08 20:20:21 rmind Exp $ */
+/* $NetBSD: cpu_cons.c,v 1.13 2012/07/28 23:08:57 matt Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -37,7 +37,7 @@
Home |
Main Index |
Thread Index |
Old Index