Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Fix some -fno-common fallout
details: https://anonhg.NetBSD.org/src/rev/26a1b1871eeb
branches: trunk
changeset: 780521:26a1b1871eeb
user: matt <matt%NetBSD.org@localhost>
date: Fri Jul 27 22:13:58 2012 +0000
description:
Fix some -fno-common fallout
diffstat:
sys/arch/evbppc/explora/machdep.c | 7 ++-----
sys/arch/evbppc/virtex/machdep.c | 8 ++------
sys/arch/evbppc/walnut/machdep.c | 9 ++-------
sys/arch/powerpc/include/ibm4xx/cpu.h | 6 +++++-
4 files changed, 11 insertions(+), 19 deletions(-)
diffs (136 lines):
diff -r 6ee46443e6ce -r 26a1b1871eeb sys/arch/evbppc/explora/machdep.c
--- a/sys/arch/evbppc/explora/machdep.c Fri Jul 27 21:51:31 2012 +0000
+++ b/sys/arch/evbppc/explora/machdep.c Fri Jul 27 22:13:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.36 2011/06/20 17:44:33 matt Exp $ */
+/* $NetBSD: machdep.c,v 1.37 2012/07/27 22:13:58 matt Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.36 2011/06/20 17:44:33 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.37 2012/07/27 22:13:58 matt Exp $");
#include "opt_explora.h"
#include "opt_modular.h"
@@ -74,7 +74,6 @@
#define MEMREGIONS 2
#define TLB_PG_SIZE (16*1024*1024)
-char cpu_model[80];
char machine[] = MACHINE; /* from <machine/param.h> */
char machine_arch[] = MACHINE_ARCH; /* from <machine/param.h> */
@@ -82,8 +81,6 @@
prop_dictionary_t board_properties;
struct vm_map *phys_map = NULL;
-char msgbuf[MSGBUFSIZE];
-paddr_t msgbuf_paddr;
static struct mem_region phys_mem[MEMREGIONS];
static struct mem_region avail_mem[MEMREGIONS];
diff -r 6ee46443e6ce -r 26a1b1871eeb sys/arch/evbppc/virtex/machdep.c
--- a/sys/arch/evbppc/virtex/machdep.c Fri Jul 27 21:51:31 2012 +0000
+++ b/sys/arch/evbppc/virtex/machdep.c Fri Jul 27 22:13:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.20 2011/06/20 17:44:33 matt Exp $ */
+/* $NetBSD: machdep.c,v 1.21 2012/07/27 22:13:58 matt Exp $ */
/*
* Copyright (c) 2006 Jachym Holecek
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.20 2011/06/20 17:44:33 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.21 2012/07/27 22:13:58 matt Exp $");
#include "opt_compat_netbsd.h"
#include "opt_ddb.h"
@@ -97,12 +97,10 @@
/*
* This should probably be in autoconf! XXX
*/
-char cpu_model[80];
char machine[] = MACHINE; /* from <machine/param.h> */
char machine_arch[] = MACHINE_ARCH; /* from <machine/param.h> */
char bootpath[256];
-paddr_t msgbuf_paddr;
vaddr_t msgbuf_vaddr;
void initppc(vaddr_t, vaddr_t);
@@ -178,8 +176,6 @@
* Machine dependent startup code.
*/
-char msgbuf[MSGBUFSIZE];
-
void
cpu_startup(void)
{
diff -r 6ee46443e6ce -r 26a1b1871eeb sys/arch/evbppc/walnut/machdep.c
--- a/sys/arch/evbppc/walnut/machdep.c Fri Jul 27 21:51:31 2012 +0000
+++ b/sys/arch/evbppc/walnut/machdep.c Fri Jul 27 22:13:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.54 2011/06/22 18:06:32 matt Exp $ */
+/* $NetBSD: machdep.c,v 1.55 2012/07/27 22:13:58 matt Exp $ */
/*
* Copyright 2001, 2002 Wasabi Systems, Inc.
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.54 2011/06/22 18:06:32 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.55 2012/07/27 22:13:58 matt Exp $");
#include "opt_compat_netbsd.h"
#include "opt_ddb.h"
@@ -134,13 +134,10 @@
/*
* This should probably be in autoconf! XXX
*/
-char cpu_model[80];
char machine[] = MACHINE; /* from <machine/param.h> */
char machine_arch[] = MACHINE_ARCH; /* from <machine/param.h> */
char bootpath[256];
-paddr_t msgbuf_paddr;
-vaddr_t msgbuf_vaddr;
void initppc(vaddr_t, vaddr_t, char *, void *);
@@ -226,8 +223,6 @@
* Machine dependent startup code.
*/
-char msgbuf[MSGBUFSIZE];
-
void
cpu_startup(void)
{
diff -r 6ee46443e6ce -r 26a1b1871eeb sys/arch/powerpc/include/ibm4xx/cpu.h
--- a/sys/arch/powerpc/include/ibm4xx/cpu.h Fri Jul 27 21:51:31 2012 +0000
+++ b/sys/arch/powerpc/include/ibm4xx/cpu.h Fri Jul 27 22:13:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.20 2011/06/20 17:44:33 matt Exp $ */
+/* $NetBSD: cpu.h,v 1.21 2012/07/27 22:13:58 matt Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -137,6 +137,10 @@
extern struct pic_ops pic_uic0;
extern struct pic_ops pic_uic1;
extern struct pic_ops pic_uic2;
+
+extern paddr_t msgbuf_paddr;
+extern vaddr_t msgbuf_vaddr;
+extern char msgbuf[MSGBUFSIZE];
#endif /* _KERNEL */
/* Board info dictionary */
Home |
Main Index |
Thread Index |
Old Index