| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: netwalker_machdep.c,v 1.23 2019/01/21 07:47:30 skrll Exp $ */ | | 1 | /* $NetBSD: netwalker_machdep.c,v 1.24 2019/06/13 04:20:23 hkenken Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 2002, 2003, 2005, 2010 Genetec Corporation. | | 4 | * Copyright (c) 2002, 2003, 2005, 2010 Genetec Corporation. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * Written by Hiroyuki Bessho for Genetec Corporation. | | 6 | * Written by Hiroyuki Bessho for Genetec Corporation. |
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 |
| @@ -92,27 +92,27 @@ | | | @@ -92,27 +92,27 @@ |
92 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | | 92 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
93 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | | 93 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
94 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | | 94 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
95 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | | 95 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
96 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | | 96 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
97 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | 97 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
98 | * SUCH DAMAGE. | | 98 | * SUCH DAMAGE. |
99 | * | | 99 | * |
100 | * Machine dependent functions for kernel setup for Intel IQ80310 evaluation | | 100 | * Machine dependent functions for kernel setup for Intel IQ80310 evaluation |
101 | * boards using RedBoot firmware. | | 101 | * boards using RedBoot firmware. |
102 | */ | | 102 | */ |
103 | | | 103 | |
104 | #include <sys/cdefs.h> | | 104 | #include <sys/cdefs.h> |
105 | __KERNEL_RCSID(0, "$NetBSD: netwalker_machdep.c,v 1.23 2019/01/21 07:47:30 skrll Exp $"); | | 105 | __KERNEL_RCSID(0, "$NetBSD: netwalker_machdep.c,v 1.24 2019/06/13 04:20:23 hkenken Exp $"); |
106 | | | 106 | |
107 | #include "opt_evbarm_boardtype.h" | | 107 | #include "opt_evbarm_boardtype.h" |
108 | #include "opt_arm_debug.h" | | 108 | #include "opt_arm_debug.h" |
109 | #include "opt_console.h" | | 109 | #include "opt_console.h" |
110 | #include "opt_cputypes.h" | | 110 | #include "opt_cputypes.h" |
111 | #include "opt_ddb.h" | | 111 | #include "opt_ddb.h" |
112 | #include "opt_kgdb.h" | | 112 | #include "opt_kgdb.h" |
113 | #include "opt_md.h" | | 113 | #include "opt_md.h" |
114 | #include "opt_com.h" | | 114 | #include "opt_com.h" |
115 | #include "imxuart.h" | | 115 | #include "imxuart.h" |
116 | #include "opt_imxuart.h" | | 116 | #include "opt_imxuart.h" |
117 | #include "opt_imx.h" | | 117 | #include "opt_imx.h" |
118 | #include "opt_imx51_ipuv3.h" | | 118 | #include "opt_imx51_ipuv3.h" |
| @@ -154,26 +154,28 @@ __KERNEL_RCSID(0, "$NetBSD: netwalker_ma | | | @@ -154,26 +154,28 @@ __KERNEL_RCSID(0, "$NetBSD: netwalker_ma |
154 | #if (NUKBD > 0) | | 154 | #if (NUKBD > 0) |
155 | #include <dev/usb/ukbdvar.h> | | 155 | #include <dev/usb/ukbdvar.h> |
156 | #endif | | 156 | #endif |
157 | | | 157 | |
158 | /* Kernel text starts 1MB in from the bottom of the kernel address space. */ | | 158 | /* Kernel text starts 1MB in from the bottom of the kernel address space. */ |
159 | #define KERNEL_TEXT_BASE (KERNEL_BASE + 0x00100000) | | 159 | #define KERNEL_TEXT_BASE (KERNEL_BASE + 0x00100000) |
160 | | | 160 | |
161 | BootConfig bootconfig; /* Boot config storage */ | | 161 | BootConfig bootconfig; /* Boot config storage */ |
162 | static char bootargs[MAX_BOOT_STRING] = BOOT_ARGS; | | 162 | static char bootargs[MAX_BOOT_STRING] = BOOT_ARGS; |
163 | char *boot_args = NULL; | | 163 | char *boot_args = NULL; |
164 | | | 164 | |
165 | extern char KERNEL_BASE_phys[]; | | 165 | extern char KERNEL_BASE_phys[]; |
166 | | | 166 | |
| | | 167 | u_int uboot_args[4] __attribute__((__section__(".data"))); |
| | | 168 | |
167 | extern int cpu_do_powersave; | | 169 | extern int cpu_do_powersave; |
168 | | | 170 | |
169 | /* | | 171 | /* |
170 | * Macros to translate between physical and virtual for a subset of the | | 172 | * Macros to translate between physical and virtual for a subset of the |
171 | * kernel address space. *Not* for general use. | | 173 | * kernel address space. *Not* for general use. |
172 | */ | | 174 | */ |
173 | #define KERNEL_BASE_PHYS ((paddr_t)KERNEL_BASE_phys) | | 175 | #define KERNEL_BASE_PHYS ((paddr_t)KERNEL_BASE_phys) |
174 | | | 176 | |
175 | | | 177 | |
176 | /* Prototypes */ | | 178 | /* Prototypes */ |
177 | | | 179 | |
178 | void consinit(void); | | 180 | void consinit(void); |
179 | | | 181 | |