Thu Jun 13 04:20:23 2019 UTC ()
Use armv6_start.S


(hkenken)
diff -r1.4 -r1.5 src/sys/arch/evbarm/conf/mk.netwalker
diff -r1.12 -r1.13 src/sys/arch/evbarm/conf/std.netwalker
diff -r1.23 -r1.24 src/sys/arch/evbarm/netwalker/netwalker_machdep.c
diff -r1.6 -r0 src/sys/arch/evbarm/netwalker/netwalker_start.S

cvs diff -r1.4 -r1.5 src/sys/arch/evbarm/conf/mk.netwalker (expand / switch to unified diff)

--- src/sys/arch/evbarm/conf/mk.netwalker 2014/04/09 04:00:50 1.4
+++ src/sys/arch/evbarm/conf/mk.netwalker 2019/06/13 04:20:23 1.5
@@ -1,17 +1,16 @@ @@ -1,17 +1,16 @@
1# $NetBSD: mk.netwalker,v 1.4 2014/04/09 04:00:50 hkenken Exp $ 1# $NetBSD: mk.netwalker,v 1.5 2019/06/13 04:20:23 hkenken Exp $
2 2
3CPPFLAGS+= -mcpu=cortex-a8 -mfpu=neon 3CPPFLAGS+= -mcpu=cortex-a8 -mfpu=neon
4 4
5SYSTEM_FIRST_OBJ= netwalker_start.o 5ENTRYPOINT= generic_start
6SYSTEM_FIRST_SFILE= ${THISARM}/netwalker/netwalker_start.S 
7 6
8KERNEL_BASE_PHYS=0x90100000 7SYSTEM_FIRST_OBJ= armv6_start.o
9KERNEL_BASE_VIRT=0x80100000 8SYSTEM_FIRST_SFILE= ${ARM}/arm/armv6_start.S
10 9
11SYSTEM_LD_TAIL_EXTRA+=; \ 10SYSTEM_LD_TAIL_EXTRA+=; \
12 echo ${OBJCOPY} -S -O binary $@ $@.bin; \ 11 echo ${OBJCOPY} -S -O binary $@ $@.bin; \
13 ${OBJCOPY} -S -O binary $@ $@.bin; \ 12 ${OBJCOPY} -S -O binary $@ $@.bin; \
14 echo ${TOOL_GZIP} -9nc $@.bin > $@.bin.gz; \ 13 echo ${TOOL_GZIP} -9nc $@.bin > $@.bin.gz; \
15 ${TOOL_GZIP} -9nc $@.bin > $@.bin.gz; \ 14 ${TOOL_GZIP} -9nc $@.bin > $@.bin.gz; \
16 15
17EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin@} 16EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin@}

cvs diff -r1.12 -r1.13 src/sys/arch/evbarm/conf/std.netwalker (expand / switch to unified diff)

--- src/sys/arch/evbarm/conf/std.netwalker 2018/10/15 16:54:54 1.12
+++ src/sys/arch/evbarm/conf/std.netwalker 2019/06/13 04:20:23 1.13
@@ -1,28 +1,32 @@ @@ -1,28 +1,32 @@
1# $NetBSD: std.netwalker,v 1.12 2018/10/15 16:54:54 skrll Exp $ 1# $NetBSD: std.netwalker,v 1.13 2019/06/13 04:20:23 hkenken Exp $
2# 2#
3# standard NetBSD/evbarm options for Sharp NetWalker 3# standard NetBSD/evbarm options for Sharp NetWalker
4 4
5machine evbarm arm 5machine evbarm arm
6include "arch/evbarm/conf/std.evbarm" 6include "arch/evbarm/conf/std.evbarm"
7 7
8# Pull in i.mx51 config definitions. 8# Pull in i.mx51 config definitions.
9include "arch/evbarm/conf/files.netwalker" 9include "arch/evbarm/conf/files.netwalker"
10 10
 11options ARM_GENERIC_TODR
 12options ARM_HAS_VBAR
 13options ARM_INTR_IMPL="<arch/arm/imx/imx51_intr.h>"
 14options DRAM_BLOCKS=256
 15options EVBARM_BOARDTYPE="netwalker"
 16options FPU_VFP
11options MODULAR 17options MODULAR
12options MODULAR_DEFAULT_AUTOLOAD 18options MODULAR_DEFAULT_AUTOLOAD
13options __HAVE_FAST_SOFTINTS # should be in types.h 
14options __HAVE_CPU_COUNTER 
15options __HAVE_MM_MD_DIRECT_MAPPED_PHYS 
16options ARM_HAS_VBAR 
17options TPIDRPRW_IS_CURCPU 19options TPIDRPRW_IS_CURCPU
 20options __BUS_SPACE_HAS_STREAM_METHODS
 21options __HAVE_CPU_COUNTER
 22options __HAVE_CPU_UAREA_ALLOC_IDLELWP
 23options __HAVE_GENERIC_START
 24options __HAVE_GENERIC_CPU_INITCLOCKS
 25options __HAVE_FAST_SOFTINTS # should be in types.h
18options CORTEX_PMC 26options CORTEX_PMC
19options CORTEX_PMC_CCNT_HZ=800000000 27options CORTEX_PMC_CCNT_HZ=800000000
20options EVBARM_BOARDTYPE="netwalker" 
21options FPU_VFP 
22 28
23makeoptions LOADADDRESS="0x90100000" 
24makeoptions BOARDTYPE="netwalker" 
25makeoptions BOARDMKFRAG="${THISARM}/conf/mk.netwalker" 29makeoptions BOARDMKFRAG="${THISARM}/conf/mk.netwalker"
26 30
27options ARM_INTR_IMPL="<arch/arm/imx/imx51_intr.h>" 31makeoptions KERNEL_BASE_PHYS=0x90008000
28options ARM_GENERIC_TODR 32makeoptions KERNEL_BASE_VIRT=0x80008000

cvs diff -r1.23 -r1.24 src/sys/arch/evbarm/netwalker/netwalker_machdep.c (expand / switch to unified diff)

--- src/sys/arch/evbarm/netwalker/netwalker_machdep.c 2019/01/21 07:47:30 1.23
+++ src/sys/arch/evbarm/netwalker/netwalker_machdep.c 2019/06/13 04:20:23 1.24
@@ -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
161BootConfig bootconfig; /* Boot config storage */ 161BootConfig bootconfig; /* Boot config storage */
162static char bootargs[MAX_BOOT_STRING] = BOOT_ARGS; 162static char bootargs[MAX_BOOT_STRING] = BOOT_ARGS;
163char *boot_args = NULL; 163char *boot_args = NULL;
164 164
165extern char KERNEL_BASE_phys[]; 165extern char KERNEL_BASE_phys[];
166 166
 167u_int uboot_args[4] __attribute__((__section__(".data")));
 168
167extern int cpu_do_powersave; 169extern 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
178void consinit(void); 180void consinit(void);
179 181

File Deleted: src/sys/arch/evbarm/netwalker/Attic/netwalker_start.S