Sat Sep 1 14:48:06 2012 UTC ()
Move things around for <arm/arm32/machdep.h>


(matt)
diff -r1.13 -r1.14 src/sys/arch/arm/at91/at91bus.c
diff -r1.17 -r1.18 src/sys/arch/arm/sa11x0/sa11x0_irqhandler.c
diff -r1.20 -r1.21 src/sys/arch/hpcarm/hpcarm/autoconf.c

cvs diff -r1.13 -r1.14 src/sys/arch/arm/at91/at91bus.c (expand / switch to unified diff)

--- src/sys/arch/arm/at91/at91bus.c 2012/07/30 23:35:27 1.13
+++ src/sys/arch/arm/at91/at91bus.c 2012/09/01 14:48:06 1.14
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: at91bus.c,v 1.13 2012/07/30 23:35:27 matt Exp $ */ 1/* $NetBSD: at91bus.c,v 1.14 2012/09/01 14:48:06 matt Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2007 Embedtronics Oy 4 * Copyright (c) 2007 Embedtronics Oy
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -17,32 +17,41 @@ @@ -17,32 +17,41 @@
17 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 17 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 18 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 * POSSIBILITY OF SUCH DAMAGE. 26 * POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29#include <sys/cdefs.h> 29#include <sys/cdefs.h>
30__KERNEL_RCSID(0, "$NetBSD: at91bus.c,v 1.13 2012/07/30 23:35:27 matt Exp $"); 30__KERNEL_RCSID(0, "$NetBSD: at91bus.c,v 1.14 2012/09/01 14:48:06 matt Exp $");
31 31
32#include "opt_ddb.h" 32#include "opt_ddb.h"
33#include "opt_kgdb.h" 33#include "opt_kgdb.h"
34#include "opt_pmap_debug.h" 34#include "opt_pmap_debug.h"
35 35
 36/* Define various stack sizes in pages */
 37#define IRQ_STACK_SIZE 8
 38#define ABT_STACK_SIZE 8
 39#ifdef IPKDB
 40#define UND_STACK_SIZE 16
 41#else
 42#define UND_STACK_SIZE 8
 43#endif
 44
36#include <sys/param.h> 45#include <sys/param.h>
37#include <sys/device.h> 46#include <sys/device.h>
38#include <sys/systm.h> 47#include <sys/systm.h>
39#include <sys/kernel.h> 48#include <sys/kernel.h>
40#include <sys/exec.h> 49#include <sys/exec.h>
41#include <sys/proc.h> 50#include <sys/proc.h>
42#include <sys/msgbuf.h> 51#include <sys/msgbuf.h>
43#include <sys/reboot.h> 52#include <sys/reboot.h>
44#include <sys/termios.h> 53#include <sys/termios.h>
45#include <sys/ksyms.h> 54#include <sys/ksyms.h>
46 55
47#include <machine/bootconfig.h> 56#include <machine/bootconfig.h>
48#include <uvm/uvm_extern.h> 57#include <uvm/uvm_extern.h>
@@ -81,35 +90,26 @@ __KERNEL_RCSID(0, "$NetBSD: at91bus.c,v  @@ -81,35 +90,26 @@ __KERNEL_RCSID(0, "$NetBSD: at91bus.c,v
81 90
82int cnspeed = CONSPEED; 91int cnspeed = CONSPEED;
83int cnmode = CONMODE; 92int cnmode = CONMODE;
84 93
85 94
86/* kernel mapping: */ 95/* kernel mapping: */
87#define KERNEL_BASE_PHYS 0x20200000 96#define KERNEL_BASE_PHYS 0x20200000
88#define KERNEL_TEXT_BASE (KERNEL_BASE + 0x00200000) 97#define KERNEL_TEXT_BASE (KERNEL_BASE + 0x00200000)
89#define KERNEL_VM_BASE (KERNEL_BASE + 0x01000000) 98#define KERNEL_VM_BASE (KERNEL_BASE + 0x01000000)
90#define KERNEL_VM_SIZE 0x0C000000 99#define KERNEL_VM_SIZE 0x0C000000
91 100
92 101
93 102
94/* Define various stack sizes in pages */ 
95#define IRQ_STACK_SIZE 8 
96#define ABT_STACK_SIZE 8 
97#ifdef IPKDB 
98#define UND_STACK_SIZE 16 
99#else 
100#define UND_STACK_SIZE 8 
101#endif 
102 
103/* boot configuration: */ 103/* boot configuration: */
104vm_offset_t physical_start; 104vm_offset_t physical_start;
105vm_offset_t physical_freestart; 105vm_offset_t physical_freestart;
106vm_offset_t physical_freeend; 106vm_offset_t physical_freeend;
107vm_offset_t physical_freeend_low; 107vm_offset_t physical_freeend_low;
108vm_offset_t physical_end; 108vm_offset_t physical_end;
109u_int free_pages; 109u_int free_pages;
110 110
111vm_offset_t msgbufphys; 111vm_offset_t msgbufphys;
112 112
113//static struct arm32_dma_range dma_ranges[4]; 113//static struct arm32_dma_range dma_ranges[4];
114 114
115#ifdef PMAP_DEBUG 115#ifdef PMAP_DEBUG

cvs diff -r1.17 -r1.18 src/sys/arch/arm/sa11x0/sa11x0_irqhandler.c (expand / switch to unified diff)

--- src/sys/arch/arm/sa11x0/sa11x0_irqhandler.c 2010/12/20 00:25:29 1.17
+++ src/sys/arch/arm/sa11x0/sa11x0_irqhandler.c 2012/09/01 14:48:05 1.18
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: sa11x0_irqhandler.c,v 1.17 2010/12/20 00:25:29 matt Exp $ */ 1/* $NetBSD: sa11x0_irqhandler.c,v 1.18 2012/09/01 14:48:05 matt Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc. 4 * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to the NetBSD Foundation 7 * This code is derived from software contributed to the NetBSD Foundation
8 * by IWAMOTO Toshihiro. 8 * by IWAMOTO Toshihiro.
9 * 9 *
10 * This code is derived from software contributed to The NetBSD Foundation 10 * This code is derived from software contributed to The NetBSD Foundation
11 * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace 11 * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace
12 * Simulation Facility, NASA Ames Research Center. 12 * Simulation Facility, NASA Ames Research Center.
13 * 13 *
14 * Redistribution and use in source and binary forms, with or without 14 * Redistribution and use in source and binary forms, with or without
@@ -59,43 +59,44 @@ @@ -59,43 +59,44 @@
59 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 59 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
60 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 60 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
61 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 61 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
62 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 62 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
63 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 63 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
64 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 64 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
65 * SUCH DAMAGE. 65 * SUCH DAMAGE.
66 * 66 *
67 * @(#)isa.c 7.2 (Berkeley) 5/13/91 67 * @(#)isa.c 7.2 (Berkeley) 5/13/91
68 */ 68 */
69 69
70 70
71#include <sys/cdefs.h> 71#include <sys/cdefs.h>
72__KERNEL_RCSID(0, "$NetBSD: sa11x0_irqhandler.c,v 1.17 2010/12/20 00:25:29 matt Exp $"); 72__KERNEL_RCSID(0, "$NetBSD: sa11x0_irqhandler.c,v 1.18 2012/09/01 14:48:05 matt Exp $");
73 73
74#include "opt_irqstats.h" 74#include "opt_irqstats.h"
75 75
76#include <sys/param.h> 76#include <sys/param.h>
77#include <sys/kernel.h> 77#include <sys/kernel.h>
78#include <sys/systm.h> 78#include <sys/systm.h>
79#include <sys/syslog.h> 79#include <sys/syslog.h>
 80#include <sys/cpu.h>
 81#include <sys/intr.h>
80#include <sys/malloc.h> 82#include <sys/malloc.h>
81 83
 84#include <uvm/uvm_extern.h>
 85
82#include <arm/arm32/machdep.h> 86#include <arm/arm32/machdep.h>
83#include <arm/sa11x0/sa11x0_reg.h> 87#include <arm/sa11x0/sa11x0_reg.h>
84#include <arm/sa11x0/sa11x0_var.h> 88#include <arm/sa11x0/sa11x0_var.h>
85 89
86#include <machine/intr.h> 
87#include <machine/cpu.h> 
88 
89irqhandler_t *irqhandlers[NIRQS]; 90irqhandler_t *irqhandlers[NIRQS];
90 91
91u_int actual_mask; 92u_int actual_mask;
92u_int irqmasks[NIPL]; 93u_int irqmasks[NIPL];
93 94
94static int fakeintr(void *); 95static int fakeintr(void *);
95#ifdef INTR_DEBUG 96#ifdef INTR_DEBUG
96static int dumpirqhandlers(void); 97static int dumpirqhandlers(void);
97#endif 98#endif
98void intr_calculatemasks(void); 99void intr_calculatemasks(void);
99 100
100const struct evcnt *sa11x0_intr_evcnt(sa11x0_chipset_tag_t, int); 101const struct evcnt *sa11x0_intr_evcnt(sa11x0_chipset_tag_t, int);
101void stray_irqhandler(void *); 102void stray_irqhandler(void *);

cvs diff -r1.20 -r1.21 src/sys/arch/hpcarm/hpcarm/autoconf.c (expand / switch to unified diff)

--- src/sys/arch/hpcarm/hpcarm/autoconf.c 2012/07/29 18:05:43 1.20
+++ src/sys/arch/hpcarm/hpcarm/autoconf.c 2012/09/01 14:48:05 1.21
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: autoconf.c,v 1.20 2012/07/29 18:05:43 mlelstv Exp $ */ 1/* $NetBSD: autoconf.c,v 1.21 2012/09/01 14:48:05 matt Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1994-1998 Mark Brinicombe. 4 * Copyright (c) 1994-1998 Mark Brinicombe.
5 * Copyright (c) 1994 Brini. 5 * Copyright (c) 1994 Brini.
6 * All rights reserved. 6 * All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
11 * 1. Redistributions of source code must retain the above copyright 11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer. 12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright 13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the 14 * notice, this list of conditions and the following disclaimer in the
@@ -26,43 +26,46 @@ @@ -26,43 +26,46 @@
26 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 26 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
27 * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 27 * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
28 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 28 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 29 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE. 34 * SUCH DAMAGE.
35 * 35 *
36 */ 36 */
37 37
38#include <sys/cdefs.h> 38#include <sys/cdefs.h>
39__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.20 2012/07/29 18:05:43 mlelstv Exp $"); 39__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.21 2012/09/01 14:48:05 matt Exp $");
40 40
41#include "opt_md.h" 41#include "opt_md.h"
42 42
43#include <sys/param.h> 43#include <sys/param.h>
44#include <sys/systm.h> 44#include <sys/systm.h>
45#include <sys/reboot.h> 
46#include <sys/disklabel.h> 
47#include <sys/device.h> 
48#include <sys/conf.h> 45#include <sys/conf.h>
 46#include <sys/device.h>
 47#include <sys/disklabel.h>
 48#include <sys/intr.h>
49#include <sys/kernel.h> 49#include <sys/kernel.h>
50#include <sys/malloc.h> 50#include <sys/malloc.h>
 51#include <sys/reboot.h>
 52
 53#include <uvm/uvm_extern.h>
 54
 55#include <arm/arm32/machdep.h>
51 56
52#include <machine/bootconfig.h> 57#include <machine/bootconfig.h>
53#include <machine/config_hook.h> 58#include <machine/config_hook.h>
54#include <machine/intr.h> 
55#include <arm/arm32/machdep.h> 
56 59
57#include "opt_cputypes.h" 60#include "opt_cputypes.h"
58#if defined(CPU_SA1100) || defined(CPU_SA1110) 61#if defined(CPU_SA1100) || defined(CPU_SA1110)
59#include "sacom.h" 62#include "sacom.h"
60#endif 63#endif
61 64
62extern dev_t dumpdev; 65extern dev_t dumpdev;
63 66
64void dumpconf(void); 67void dumpconf(void);
65void isa_intr_init(void); 68void isa_intr_init(void);
66 69
67#ifndef MEMORY_DISK_IS_ROOT 70#ifndef MEMORY_DISK_IS_ROOT
68static void get_device(const char *); 71static void get_device(const char *);