Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Add stub port for evbcf which has enough to do a distributio...
details: https://anonhg.NetBSD.org/src/rev/6054aa1a171e
branches: trunk
changeset: 788741:6054aa1a171e
user: matt <matt%NetBSD.org@localhost>
date: Thu Jul 18 22:08:59 2013 +0000
description:
Add stub port for evbcf which has enough to do a distribution build.
diffstat:
build.sh | 5 +-
distrib/sets/lists/comp/md.evbcf | 47 ++
etc/etc.evbcf/MAKEDEV.conf | 15 +
etc/etc.evbcf/Makefile.inc | 13 +
etc/etc.evbcf/ttys | 22 +
sys/arch/evbcf/Makefile | 6 +
sys/arch/evbcf/compile/Makefile | 3 +
sys/arch/evbcf/conf/majors.evbcf | 46 ++
sys/arch/evbcf/evbcf/vectors.s | 143 ++++++
sys/arch/evbcf/include/Makefile | 25 +
sys/arch/evbcf/include/ansi.h | 3 +
sys/arch/evbcf/include/aout_machdep.h | 3 +
sys/arch/evbcf/include/asm.h | 3 +
sys/arch/evbcf/include/autoconf.h | 40 +
sys/arch/evbcf/include/bswap.h | 3 +
sys/arch/evbcf/include/bus.h | 6 +
sys/arch/evbcf/include/bus_dma.h | 254 +++++++++++
sys/arch/evbcf/include/bus_space.h | 650 ++++++++++++++++++++++++++++++
sys/arch/evbcf/include/cdefs.h | 3 +
sys/arch/evbcf/include/cpu.h | 181 ++++++++
sys/arch/evbcf/include/db_machdep.h | 7 +
sys/arch/evbcf/include/disklabel.h | 147 ++++++
sys/arch/evbcf/include/elf_machdep.h | 3 +
sys/arch/evbcf/include/endian.h | 3 +
sys/arch/evbcf/include/endian_machdep.h | 3 +
sys/arch/evbcf/include/float.h | 3 +
sys/arch/evbcf/include/frame.h | 3 +
sys/arch/evbcf/include/ieee.h | 3 +
sys/arch/evbcf/include/ieeefp.h | 3 +
sys/arch/evbcf/include/int_const.h | 3 +
sys/arch/evbcf/include/int_fmtio.h | 3 +
sys/arch/evbcf/include/int_limits.h | 3 +
sys/arch/evbcf/include/int_mwgwtypes.h | 3 +
sys/arch/evbcf/include/int_types.h | 3 +
sys/arch/evbcf/include/intr.h | 90 ++++
sys/arch/evbcf/include/kcore.h | 3 +
sys/arch/evbcf/include/limits.h | 3 +
sys/arch/evbcf/include/loadfile_machdep.h | 64 ++
sys/arch/evbcf/include/lock.h | 4 +
sys/arch/evbcf/include/math.h | 3 +
sys/arch/evbcf/include/mcontext.h | 3 +
sys/arch/evbcf/include/mutex.h | 3 +
sys/arch/evbcf/include/param.h | 79 +++
sys/arch/evbcf/include/pcb.h | 3 +
sys/arch/evbcf/include/pmap.h | 7 +
sys/arch/evbcf/include/pmc.h | 3 +
sys/arch/evbcf/include/proc.h | 3 +
sys/arch/evbcf/include/profile.h | 3 +
sys/arch/evbcf/include/psl.h | 3 +
sys/arch/evbcf/include/pte.h | 5 +
sys/arch/evbcf/include/ptrace.h | 4 +
sys/arch/evbcf/include/reg.h | 8 +
sys/arch/evbcf/include/rwlock.h | 3 +
sys/arch/evbcf/include/setjmp.h | 3 +
sys/arch/evbcf/include/signal.h | 3 +
sys/arch/evbcf/include/sunos_machdep.h | 3 +
sys/arch/evbcf/include/svr4_machdep.h | 3 +
sys/arch/evbcf/include/trap.h | 3 +
sys/arch/evbcf/include/types.h | 10 +
sys/arch/evbcf/include/vmparam.h | 98 ++++
sys/arch/evbcf/include/wchar_limits.h | 3 +
sys/arch/evbcf/stand/Makefile | 3 +
tools/headerlist | 4 +-
usr.bin/xlint/arch/coldfire/targparam.h | 54 ++
64 files changed, 2139 insertions(+), 3 deletions(-)
diffs (truncated from 2426 to 300 lines):
diff -r 164c056076f1 -r 6054aa1a171e build.sh
--- a/build.sh Thu Jul 18 22:06:09 2013 +0000
+++ b/build.sh Thu Jul 18 22:08:59 2013 +0000
@@ -1,5 +1,5 @@
#! /usr/bin/env sh
-# $NetBSD: build.sh,v 1.269 2013/06/28 06:17:37 msaitoh Exp $
+# $NetBSD: build.sh,v 1.270 2013/07/18 22:08:59 matt Exp $
#
# Copyright (c) 2001-2011 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -593,6 +593,7 @@
MACHINE=evbarm MACHINE_ARCH=earmeb ALIAS=evbearm-eb
MACHINE=evbarm MACHINE_ARCH=earmhf ALIAS=evbearmhf-el
MACHINE=evbarm MACHINE_ARCH=earmhfeb ALIAS=evbearmhf-eb
+MACHINE=evbcf MACHINE_ARCH=coldfire
MACHINE=evbmips MACHINE_ARCH= NO_DEFAULT
MACHINE=evbmips MACHINE_ARCH=mips64eb ALIAS=evbmips64-eb
MACHINE=evbmips MACHINE_ARCH=mips64el ALIAS=evbmips64-el
@@ -1732,7 +1733,7 @@
eval cat <<EOF ${makewrapout}
#! ${HOST_SH}
# Set proper variables to allow easy "make" building of a NetBSD subtree.
-# Generated from: \$NetBSD: build.sh,v 1.269 2013/06/28 06:17:37 msaitoh Exp $
+# Generated from: \$NetBSD: build.sh,v 1.270 2013/07/18 22:08:59 matt Exp $
# with these arguments: ${_args}
#
diff -r 164c056076f1 -r 6054aa1a171e distrib/sets/lists/comp/md.evbcf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sets/lists/comp/md.evbcf Thu Jul 18 22:08:59 2013 +0000
@@ -0,0 +1,47 @@
+# $NetBSD: md.evbcf,v 1.1 2013/07/18 22:08:59 matt Exp $
+./usr/include/ieeefp.h comp-c-include
+./usr/include/evbcf comp-c-include
+./usr/include/evbcf/ansi.h comp-c-include
+./usr/include/evbcf/aout_machdep.h comp-c-include
+./usr/include/evbcf/asm.h comp-c-include
+./usr/include/evbcf/autoconf.h comp-c-include
+./usr/include/evbcf/bswap.h comp-c-include
+./usr/include/evbcf/cdefs.h comp-c-include
+./usr/include/evbcf/cpu.h comp-c-include
+./usr/include/evbcf/disklabel.h comp-c-include
+./usr/include/evbcf/elf_machdep.h comp-c-include
+./usr/include/evbcf/endian.h comp-c-include
+./usr/include/evbcf/endian_machdep.h comp-c-include
+./usr/include/evbcf/float.h comp-c-include
+./usr/include/evbcf/frame.h comp-c-include
+./usr/include/evbcf/ieee.h comp-c-include
+./usr/include/evbcf/ieeefp.h comp-c-include
+./usr/include/evbcf/int_const.h comp-c-include
+./usr/include/evbcf/int_fmtio.h comp-c-include
+./usr/include/evbcf/int_limits.h comp-c-include
+./usr/include/evbcf/int_mwgwtypes.h comp-c-include
+./usr/include/evbcf/int_types.h comp-c-include
+./usr/include/evbcf/intr.h comp-c-include
+./usr/include/evbcf/kcore.h comp-c-include
+./usr/include/evbcf/limits.h comp-c-include
+./usr/include/evbcf/lock.h comp-c-include
+./usr/include/evbcf/math.h comp-c-include
+./usr/include/evbcf/mcontext.h comp-c-include
+./usr/include/evbcf/mutex.h comp-c-include
+./usr/include/evbcf/param.h comp-c-include
+./usr/include/evbcf/pcb.h comp-c-include
+./usr/include/evbcf/pmap.h comp-c-include
+./usr/include/evbcf/pmc.h comp-c-include
+./usr/include/evbcf/proc.h comp-c-include
+./usr/include/evbcf/profile.h comp-c-include
+./usr/include/evbcf/psl.h comp-c-include
+./usr/include/evbcf/pte.h comp-c-include
+./usr/include/evbcf/ptrace.h comp-c-include
+./usr/include/evbcf/reg.h comp-c-include
+./usr/include/evbcf/rwlock.h comp-c-include
+./usr/include/evbcf/setjmp.h comp-c-include
+./usr/include/evbcf/signal.h comp-c-include
+./usr/include/evbcf/trap.h comp-c-include
+./usr/include/evbcf/types.h comp-c-include
+./usr/include/evbcf/vmparam.h comp-c-include
+./usr/include/evbcf/wchar_limits.h comp-c-include
diff -r 164c056076f1 -r 6054aa1a171e etc/etc.evbcf/MAKEDEV.conf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/etc.evbcf/MAKEDEV.conf Thu Jul 18 22:08:59 2013 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: MAKEDEV.conf,v 1.1 2013/07/18 22:08:59 matt Exp $
+
+all_md)
+ makedev sd0 sd1 sd2 ld0 dk0 dk1 dk2 dk3 dk4 dk5 dk6 dk7
+ makedev ttyF1 ttyF2
+ makedev scsibus0
+ makedev drvctl
+ ;;
+
+ttyF[0-9]*)
+ # on-board evbcf serial ports
+ unit=${i#ttyF}
+ mkdev ttyF$unit c 14 $(($unit + $dialin )) "" "" $u_uucp
+ mkdev dtyF$unit c 14 $(($unit + $dialout)) "" "" $u_uucp
+ ;;
diff -r 164c056076f1 -r 6054aa1a171e etc/etc.evbcf/Makefile.inc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/etc.evbcf/Makefile.inc Thu Jul 18 22:08:59 2013 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile.inc,v 1.1 2013/07/18 22:08:59 matt Exp $
+#
+# etc.evbcf/Makefile.inc -- evbcf-specific etc Makefile targets
+#
+
+# If you change the list of distributed kernels, don't forget
+# to update the release documentation in distrib/notes/common/contents
+
+KERNEL_SETS= TWR54418
+
+BUILD_KERNELS= TWR54418_INSTALL
+
+snap_md_post:
diff -r 164c056076f1 -r 6054aa1a171e etc/etc.evbcf/ttys
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/etc.evbcf/ttys Thu Jul 18 22:08:59 2013 +0000
@@ -0,0 +1,22 @@
+# $NetBSD: ttys,v 1.1 2013/07/18 22:08:59 matt Exp $
+# from: @(#)ttys 5.1 (Berkeley) 4/17/89
+#
+# name getty type status comments
+#
+# If the console is marked insecure, single-user requires
+# the root password.
+#
+# /dev/console is always valid, regardless of the board type.
+#
+console "/usr/libexec/getty Pc" dumb on secure
+constty "/usr/libexec/getty Pc" dumb off secure
+
+#
+# Hardwired lines are marked off, by default, so getty(8)
+# is quiet when they don't exist.
+#
+# The first three would be used on MVME-147, MVME-162 and MVME-172
+#
+ttyF1 "/usr/libexec/getty std.9600" unknown off secure
+ttyF2 "/usr/libexec/getty std.9600" unknown off secure
+ttyF3 "/usr/libexec/getty std.9600" unknown off secure
diff -r 164c056076f1 -r 6054aa1a171e sys/arch/evbcf/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbcf/Makefile Thu Jul 18 22:08:59 2013 +0000
@@ -0,0 +1,6 @@
+# $NetBSD: Makefile,v 1.1 2013/07/18 22:08:59 matt Exp $
+
+SUBDIR= compile include
+SUBDIR+= stand
+
+.include <bsd.subdir.mk>
diff -r 164c056076f1 -r 6054aa1a171e sys/arch/evbcf/compile/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbcf/compile/Makefile Thu Jul 18 22:08:59 2013 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2013/07/18 22:08:59 matt Exp $
+
+.include <bsd.prog.mk>
diff -r 164c056076f1 -r 6054aa1a171e sys/arch/evbcf/conf/majors.evbcf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbcf/conf/majors.evbcf Thu Jul 18 22:08:59 2013 +0000
@@ -0,0 +1,46 @@
+# $NetBSD: majors.evbcf,v 1.1 2013/07/18 22:08:59 matt Exp $
+#
+# Device majors for mvme68k
+#
+
+device-major cons char 0
+device-major ctty char 1
+device-major mem char 2
+device-major swap char 3 block 3 vmswap
+device-major pts char 4 pty
+device-major ptc char 5 pty
+device-major log char 6
+device-major ipl char 7 ipfilter
+device-major sd char 8 block 4 sd
+
+device-major lpt char 11 lpt
+device-major zstty char 12 zstty
+device-major clmpcc char 13 clmpcc
+device-major cftty char 14 cfuart
+
+device-major ccd char 17 block 5 ccd
+device-major cd char 18 block 8 cd
+device-major vnd char 19 block 6 vnd
+device-major st char 20 block 7 st
+device-major filedesc char 21
+device-major bpf char 22 bpfilter
+device-major tun char 23 tun
+
+device-major ses char 30 ses
+device-major ch char 31 ch
+device-major md char 32 block 9 md
+device-major ss char 33 ss
+device-major uk char 34 uk
+device-major rnd char 35 rnd
+device-major scsibus char 36 scsibus
+device-major raid char 37 block 16 raid
+device-major svr4_net char 38 compat_svr4
+device-major clockctl char 39 clockctl
+device-major cgd char 41 block 17 cgd
+device-major ksyms char 42 ksyms
+
+device-major nsmb char 98 nsmb
+
+# Majors up to 143 are reserved for machine-dependent drivers.
+# New machine-independent driver majors are assigned in
+# sys/conf/majors.
diff -r 164c056076f1 -r 6054aa1a171e sys/arch/evbcf/evbcf/vectors.s
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbcf/evbcf/vectors.s Thu Jul 18 22:08:59 2013 +0000
@@ -0,0 +1,143 @@
+| $NetBSD: vectors.s,v 1.1 2013/07/18 22:08:59 matt Exp $
+
+| Copyright (c) 1997 Jason R. Thorpe. All rights reserved.
+| Copyright (c) 1988 University of Utah
+| Copyright (c) 1990, 1993
+| The Regents of the University of California. All rights reserved.
+|
+| Redistribution and use in source and binary forms, with or without
+| modification, are permitted provided that the following conditions
+| are met:
+| 1. Redistributions of source code must retain the above copyright
+| notice, this list of conditions and the following disclaimer.
+| 2. Redistributions in binary form must reproduce the above copyright
+| notice, this list of conditions and the following disclaimer in the
+| documentation and/or other materials provided with the distribution.
+| 3. All advertising materials mentioning features or use of this software
+| must display the following acknowledgement:
+| This product includes software developed by the University of
+| California, Berkeley and its contributors.
+| 4. Neither the name of the University nor the names of its contributors
+| may be used to endorse or promote products derived from this software
+| without specific prior written permission.
+|
+| THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+| ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+| IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+| ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+| FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+| DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+| OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+| HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+| LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+| OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+| SUCH DAMAGE.
+|
+| @(#)vectors.s 8.2 (Berkeley) 1/21/94
+|
+
+#define BADTRAP16 \
+ VECTOR(badtrap) ; VECTOR(badtrap) ; \
+ VECTOR(badtrap) ; VECTOR(badtrap) ; \
+ VECTOR(badtrap) ; VECTOR(badtrap) ; \
+ VECTOR(badtrap) ; VECTOR(badtrap) ; \
+ VECTOR(badtrap) ; VECTOR(badtrap) ; \
+ VECTOR(badtrap) ; VECTOR(badtrap) ; \
+ VECTOR(badtrap) ; VECTOR(badtrap) ; \
+ VECTOR(badtrap) ; VECTOR(badtrap)
+
+ /*
+ * bus error and address error vectors are initialized
+ * in locore.s once we know our CPU type.
+ */
+
+ .data
+GLOBAL(vectab)
+ VECTOR_UNUSED /* 0: (unused reset SSP) */
+ VECTOR_UNUSED /* 1: NOT USED (reset PC) */
+ VECTOR_UNUSED /* 2: bus error */
+ VECTOR_UNUSED /* 3: address error */
+ VECTOR(illinst) /* 4: illegal instruction */
+ VECTOR(zerodiv) /* 5: zero divide */
+ VECTOR_UNUSED /* 6: CHK instruction */
+ VECTOR_UNUSED /* 7: TRAPV instruction */
+ VECTOR(privinst) /* 8: privilege violation */
+ VECTOR(trace) /* 9: trace */
+ VECTOR(illinst) /* 10: line 1010 emulator */
+ VECTOR(fpfline) /* 11: line 1111 emulator */
+ VECTOR(badtrap) /* 12: non-PC breakpoint detected */
+ VECTOR(coperr) /* 13: PC breakpoint detected */
+ VECTOR(fmterr) /* 14: format error */
+ VECTOR(badtrap) /* 15: uninitialized interrupt vector */
+ VECTOR(badtrap) /* 16: unassigned, reserved */
+ VECTOR(badtrap) /* 17: unassigned, reserved */
+ VECTOR(badtrap) /* 18: unassigned, reserved */
+ VECTOR(badtrap) /* 19: unassigned, reserved */
+ VECTOR(badtrap) /* 20: unassigned, reserved */
+ VECTOR(badtrap) /* 21: unassigned, reserved */
+ VECTOR(badtrap) /* 22: unassigned, reserved */
+ VECTOR(badtrap) /* 23: unassigned, reserved */
+ VECTOR(intrhand_autovec)/* 24: spurious autovector interrupt */
+ VECTOR(intrhand_autovec)/* 25: level 1 interrupt autovector */
+ VECTOR(intrhand_autovec)/* 26: level 2 interrupt autovector */
+ VECTOR(intrhand_autovec)/* 27: level 3 interrupt autovector */
+ VECTOR(intrhand_autovec)/* 28: level 4 interrupt autovector */
+ VECTOR(intrhand_autovec)/* 29: level 5 interrupt autovector */
+ VECTOR(intrhand_autovec)/* 30: level 6 interrupt autovector */
+ VECTOR(intrhand_autovec)/* 31: level 7 interrupt autovector */
+ VECTOR(trap0) /* 32: trap 0 syscalls */
+#ifdef COMPAT_13
Home |
Main Index |
Thread Index |
Old Index