| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: machdep.c,v 1.72 2010/12/20 00:25:32 matt Exp $ */ | | 1 | /* $NetBSD: machdep.c,v 1.73 2011/01/19 09:36:33 he Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 1996, 1997, 1998 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 Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace | | 8 | * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace |
9 | * Simulation Facility, NASA Ames Research Center. | | 9 | * Simulation Facility, NASA Ames Research Center. |
10 | * | | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | | 11 | * Redistribution and use in source and binary forms, with or without |
12 | * modification, are permitted provided that the following conditions | | 12 | * modification, are permitted provided that the following conditions |
13 | * are met: | | 13 | * are met: |
14 | * 1. Redistributions of source code must retain the above copyright | | 14 | * 1. Redistributions of source code must retain the above copyright |
| @@ -55,27 +55,27 @@ | | | @@ -55,27 +55,27 @@ |
55 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | | 55 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
56 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | | 56 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
57 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | | 57 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
58 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | | 58 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
59 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | | 59 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
60 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | | 60 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
61 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | 61 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
62 | * SUCH DAMAGE. | | 62 | * SUCH DAMAGE. |
63 | * | | 63 | * |
64 | * @(#)machdep.c 7.4 (Berkeley) 6/3/91 | | 64 | * @(#)machdep.c 7.4 (Berkeley) 6/3/91 |
65 | */ | | 65 | */ |
66 | | | 66 | |
67 | #include <sys/cdefs.h> | | 67 | #include <sys/cdefs.h> |
68 | __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.72 2010/12/20 00:25:32 matt Exp $"); | | 68 | __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.73 2011/01/19 09:36:33 he Exp $"); |
69 | | | 69 | |
70 | #include "opt_ddb.h" | | 70 | #include "opt_ddb.h" |
71 | #include "opt_kgdb.h" | | 71 | #include "opt_kgdb.h" |
72 | #include "opt_memsize.h" | | 72 | #include "opt_memsize.h" |
73 | #include "opt_initbsc.h" | | 73 | #include "opt_initbsc.h" |
74 | #include "opt_kloader.h" | | 74 | #include "opt_kloader.h" |
75 | #include "opt_kloader_kernel_path.h" | | 75 | #include "opt_kloader_kernel_path.h" |
76 | | | 76 | |
77 | #include <sys/param.h> | | 77 | #include <sys/param.h> |
78 | #include <sys/systm.h> | | 78 | #include <sys/systm.h> |
79 | #include <sys/kernel.h> | | 79 | #include <sys/kernel.h> |
80 | #include <sys/mount.h> | | 80 | #include <sys/mount.h> |
81 | #include <sys/reboot.h> | | 81 | #include <sys/reboot.h> |
| @@ -85,26 +85,27 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v | | | @@ -85,26 +85,27 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v |
85 | | | 85 | |
86 | #include <uvm/uvm_extern.h> | | 86 | #include <uvm/uvm_extern.h> |
87 | | | 87 | |
88 | #include <dev/cons.h> | | 88 | #include <dev/cons.h> |
89 | | | 89 | |
90 | #include <sh3/bscreg.h> | | 90 | #include <sh3/bscreg.h> |
91 | #include <sh3/cpgreg.h> | | 91 | #include <sh3/cpgreg.h> |
92 | #include <sh3/cache_sh3.h> | | 92 | #include <sh3/cache_sh3.h> |
93 | #include <sh3/cache_sh4.h> | | 93 | #include <sh3/cache_sh4.h> |
94 | #include <sh3/exception.h> | | 94 | #include <sh3/exception.h> |
95 | | | 95 | |
96 | #include <machine/bus.h> | | 96 | #include <machine/bus.h> |
97 | #include <machine/intr.h> | | 97 | #include <machine/intr.h> |
| | | 98 | #include <machine/pcb.h> |
98 | | | 99 | |
99 | #ifdef DDB | | 100 | #ifdef DDB |
100 | #include <machine/db_machdep.h> | | 101 | #include <machine/db_machdep.h> |
101 | #include <ddb/db_extern.h> | | 102 | #include <ddb/db_extern.h> |
102 | #endif | | 103 | #endif |
103 | | | 104 | |
104 | #ifdef KLOADER | | 105 | #ifdef KLOADER |
105 | #include <machine/kloader.h> | | 106 | #include <machine/kloader.h> |
106 | #endif | | 107 | #endif |
107 | | | 108 | |
108 | #include "ksyms.h" | | 109 | #include "ksyms.h" |
109 | | | 110 | |
110 | /* the following is used externally (sysctl_hw) */ | | 111 | /* the following is used externally (sysctl_hw) */ |