Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/atari Appease gcc -fno-common:



details:   https://anonhg.NetBSD.org/src/rev/48f7432347b2
branches:  trunk
changeset: 780903:48f7432347b2
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Aug 10 17:43:32 2012 +0000

description:
Appease gcc -fno-common:
 - remove physmem from machdep.c since it's initialized in atari_init.c
 - declare I/O address space variables properly
Compile test only.  (currenty my TT030 is busy on pkgsrc builds)

diffstat:

 sys/arch/atari/atari/atari_init.c |  11 +++++++++--
 sys/arch/atari/atari/machdep.c    |   5 ++---
 sys/arch/atari/include/iomap.h    |  12 ++++++------
 3 files changed, 17 insertions(+), 11 deletions(-)

diffs (91 lines):

diff -r 0c1d340be959 -r 48f7432347b2 sys/arch/atari/atari/atari_init.c
--- a/sys/arch/atari/atari/atari_init.c Fri Aug 10 17:12:11 2012 +0000
+++ b/sys/arch/atari/atari/atari_init.c Fri Aug 10 17:43:32 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atari_init.c,v 1.99 2012/02/21 12:09:50 tsutsui Exp $  */
+/*     $NetBSD: atari_init.c,v 1.100 2012/08/10 17:43:32 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1995 Leo Weppelman
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atari_init.c,v 1.99 2012/02/21 12:09:50 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atari_init.c,v 1.100 2012/08/10 17:43:32 tsutsui Exp $");
 
 #include "opt_ddb.h"
 #include "opt_mbtype.h"
@@ -141,6 +141,13 @@
 u_long st_pool_size = ST_POOL_SIZE * PAGE_SIZE; /* Patchable   */
 u_long st_pool_virt, st_pool_phys;
 
+/* I/O address space variables */
+vaddr_t        stio_addr;              /* Where the st io-area is mapped       */
+vaddr_t        pci_conf_addr;          /* KVA base of PCI config space         */
+vaddr_t        pci_io_addr;            /* KVA base of PCI io-space             */
+vaddr_t        pci_mem_addr;           /* KVA base of PCI mem-space            */
+vaddr_t        pci_mem_uncached;       /* KVA base of an uncached PCI mem-page */
+
 /*
  * Are we relocating the kernel to TT-Ram if possible? It is faster, but
  * it is also reported not to work on all TT's. So the default is NO.
diff -r 0c1d340be959 -r 48f7432347b2 sys/arch/atari/atari/machdep.c
--- a/sys/arch/atari/atari/machdep.c    Fri Aug 10 17:12:11 2012 +0000
+++ b/sys/arch/atari/atari/machdep.c    Fri Aug 10 17:43:32 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.174 2012/07/27 05:36:10 matt Exp $       */
+/*     $NetBSD: machdep.c,v 1.175 2012/08/10 17:43:32 tsutsui Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.174 2012/07/27 05:36:10 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.175 2012/08/10 17:43:32 tsutsui Exp $");
 
 #include "opt_ddb.h"
 #include "opt_compat_netbsd.h"
@@ -112,7 +112,6 @@
 void * msgbufaddr;
 vaddr_t        msgbufpa;
 
-int    physmem = MAXMEM;       /* max supported memory, changes to actual */
 extern  int   freebufspace;
 extern u_int lowram;
 
diff -r 0c1d340be959 -r 48f7432347b2 sys/arch/atari/include/iomap.h
--- a/sys/arch/atari/include/iomap.h    Fri Aug 10 17:12:11 2012 +0000
+++ b/sys/arch/atari/include/iomap.h    Fri Aug 10 17:43:32 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iomap.h,v 1.14 2009/10/20 19:10:11 snj Exp $   */
+/*     $NetBSD: iomap.h,v 1.15 2012/08/10 17:43:32 tsutsui Exp $       */
 
 /*
  * Copyright (c) 1995 Leo Weppelman.
@@ -36,7 +36,7 @@
  * I/O Address maps
  */
 #ifdef _KERNEL
-vaddr_t        stio_addr;              /* Where the st io-area is mapped       */
+extern vaddr_t stio_addr;      /* Where the st io-area is mapped       */
 #define        AD_STIO (stio_addr)     /* .. see atari_init.c                  */
 
 /*
@@ -48,10 +48,10 @@
  * with the PLX. Also, the Milan uses the first page of 'pci_io_addr' for
  * access to some of it's ISA I/O devices (RTC, Interrupt controller, etc.)
  */
-vaddr_t        pci_conf_addr;          /* KVA base of PCI config space         */
-vaddr_t        pci_io_addr;            /* KVA base of PCI io-space             */
-vaddr_t        pci_mem_addr;           /* KVA base of PCI mem-space            */
-vaddr_t        pci_mem_uncached;       /* KVA base of an uncached PCI mem-page */
+extern vaddr_t pci_conf_addr;  /* KVA base of PCI config space         */
+extern vaddr_t pci_io_addr;    /* KVA base of PCI io-space             */
+extern vaddr_t pci_mem_addr;   /* KVA base of PCI mem-space            */
+extern vaddr_t pci_mem_uncached; /* KVA base of an uncached PCI mem-page */
 #endif /* _KERNEL */
 
 #define        PCI_CONFB_PHYS          (0xA0000000L)



Home | Main Index | Thread Index | Old Index