From ab103e8af75b6bfa5b9e022ad20bec19f3c2ef99 Mon Sep 17 00:00:00 2001 From: ragge Date: Tue, 19 Aug 2003 10:49:57 +0000 Subject: [PATCH] Configuration files for pdp10. --- sys/arch/pdp10/conf/GENERIC | 151 +++++++++++++++++++++++++++++ sys/arch/pdp10/conf/Makefile.pdp10 | 86 ++++++++++++++++ sys/arch/pdp10/conf/files.pdp10 | 46 +++++++++ sys/arch/pdp10/conf/majors.pdp10 | 10 ++ sys/arch/pdp10/conf/std.pdp10 | 8 ++ 5 files changed, 301 insertions(+) create mode 100644 sys/arch/pdp10/conf/GENERIC create mode 100644 sys/arch/pdp10/conf/Makefile.pdp10 create mode 100644 sys/arch/pdp10/conf/files.pdp10 create mode 100644 sys/arch/pdp10/conf/majors.pdp10 create mode 100644 sys/arch/pdp10/conf/std.pdp10 diff --git a/sys/arch/pdp10/conf/GENERIC b/sys/arch/pdp10/conf/GENERIC new file mode 100644 index 000000000000..6b016e65ff44 --- /dev/null +++ b/sys/arch/pdp10/conf/GENERIC @@ -0,0 +1,151 @@ +# $NetBSD: GENERIC,v 1.1 2003/08/19 10:49:57 ragge Exp $ +# +# GENERIC machine description file +# +# This machine description file is used to generate the default NetBSD +# kernel. The generic kernel does not include all options, subsystems +# and device drivers, but should be useful for most applications. +# +# The machine description file can be customised for your specific +# machine to reduce the kernel size and improve its performance. +# +# For further information on compiling NetBSD kernels, see the config(8) +# man page. +# +# For further information on hardware support for this architecture, see +# the intro(4) man page. For further information about kernel options +# for this architecture, see the options(4) man page. For an explanation +# of each device driver in this file see the section 4 man page for the +# device. + +include "arch/pdp10/conf/std.pdp10" + +#options INCLUDE_CONFIG_FILE # embed config file in kernel binary + +#ident "GENERIC-$Revision: 1.1 $" + +# Here are all different supported CPU types listed. +options KL10 + +# Max users on system; this is just a hint +maxusers 8 + +# Kernel compiled-in symbolic debugger & system call tracer +#makeoptions DEBUG="-g" +options DDB +options DDB_HISTORY_SIZE=100 # enable history editing in DDB +#options KTRACE +options DIAGNOSTIC +options DEBUG,KMEMSTATS,LOCKDEBUG +options NO_KERNEL_RCSIDS +options MALLOC_DEBUG + +# Networking options +#options GATEWAY # packet forwarding +#options NTP # NTP kernel support +#options INET # IP + ICMP + TCP + UDP +#options INET6 # IPV6 +#options IPSEC # IP security +#options IPSEC_ESP # IP security (encryption part; define w/IPSEC) +#options IPSEC_DEBUG # debug for IP security +#options MROUTING # IP multicast routing +#options NS # XNS +#options NSIP # XNS tunneling over IP +#options ISO,TPIP # OSI +#options EON # OSI tunneling over IP +#options CCITT,LLC,HDLC # X.25 +#options NETATALK # AppleTalk networking protocols +#options PPP_BSDCOMP # BSD-Compress compression support for PPP +#options PPP_DEFLATE # Deflate compression support for PPP +#options PPP_FILTER # Active filter support for PPP (requires bpf) +#options PFIL_HOOKS # pfil(9) packet filter hooks +#options IPFILTER_LOG # ipmon(8) log support + +# All supported filesystem types +file-system FFS +#file-system LFS +file-system MFS +#file-system NFS +#file-system FDESC +#file-system KERNFS +file-system NULLFS +#file-system OVERLAY # overlay file system +#file-system PROCFS +#file-system UMAPFS +#file-system UNION +#file-system CD9660 + +#options QUOTA +#options FFS_EI # FFS Endian Independant support +#options SOFTDEP # FFS soft updates support. +#options NFSSERVER +#options NFS_BOOT_BOOTP,NFS_BOOT_DHCP # Use bootp <> dhcp +#options NFS_BOOT_BOOTPARAM # Use the Sun way for netbooting. + +# System V shared memory & semaphores support. +#options SYSVMSG +#options SYSVSEM +#options SEMMNI=10 # number of semaphore identifiers +#options SEMMNS=60 # number of semaphores in system +#options SEMUME=10 # max number of undo entries per process +#options SEMMNU=30 # number of undo structures in system +#options SYSVSHM + +#options LKM + +#options USERCONF # userconf(4) support +options PIPE_SOCKETPAIR # smaller, but slower pipe(2) + +# Kernel(s) to compile +config netbsd root on ? type ? + +mainbus0 at root + +ebus0 at mainbus0 + +#dte0 at ebus0 csr 0200 +#dte1 at ebus0 csr 0210 +#dte2 at ebus0 csr 0220 +#dte3 at ebus0 csr 0230 + +rh0 at ebus0 csr 0540 +#rh1 at ebus0 csr 0544 +#rh2 at ebus0 csr 0550 +#rh3 at ebus0 csr 0554 +#rh4 at ebus0 csr 0560 +#rh5 at ebus0 csr 0564 +#rh6 at ebus0 csr 0570 +#rh7 at ebus0 csr 0574 + +# Devices on Massbus adapters +hp* at rh? drive? # RM/RP disk drives + +#pseudo-device loop 1 +#pseudo-device pty # pseudo-terminals +#pseudo-device bpfilter 8 # Not supported by de yet. +#pseudo-device ipfilter # IP filter (firewall) and NAT +#pseudo-device sl 2 +#pseudo-device ppp 2 +#pseudo-device pppoe # PPP over Ethernet (RFC 2516) +#pseudo-device tun 2 +#pseudo-device gre 2 # generic L3 over IP tunnel +#pseudo-device gif 4 # IPv[46] over IPv[46] tunnel (RFC1933) +#pseudo-device faith 1 # IPv[46] tcp relay translation i/f +#pseudo-device stf 1 # 6to4 IPv6 over IPv4 encapsulation +#pseudo-device vlan # IEEE 802.1q encapsulation +#pseudo-device bridge # simple inter-network bridging +#pseudo-device tb 1 +#pseudo-device vnd 4 +#pseudo-device ccd 4 +#pseudo-device raid 8 # RAIDframe disk driver +#options RAID_AUTOCONFIG # auto-configuration of RAID components +# Options to enable various other RAIDframe RAID types. +# options RF_INCLUDE_EVENODD=1 +# options RF_INCLUDE_RAID5_RS=1 +# options RF_INCLUDE_PARITYLOGGING=1 +# options RF_INCLUDE_CHAINDECLUSTER=1 +# options RF_INCLUDE_INTERDECLUSTER=1 +# options RF_INCLUDE_PARITY_DECLUSTERING=1 +# options RF_INCLUDE_PARITY_DECLUSTERING_DS=1 +#pseudo-device rnd # /dev/random and in-kernel generator +#pseudo-device leds # control the leds on vaxstations. diff --git a/sys/arch/pdp10/conf/Makefile.pdp10 b/sys/arch/pdp10/conf/Makefile.pdp10 new file mode 100644 index 000000000000..d20aeed390b2 --- /dev/null +++ b/sys/arch/pdp10/conf/Makefile.pdp10 @@ -0,0 +1,86 @@ +# $NetBSD: Makefile.pdp10,v 1.1 2003/08/19 10:49:57 ragge Exp $ + +# Makefile for NetBSD +# +# This makefile is constructed from a machine description: +# config machineid +# Most changes should be made in the machine description +# /sys/arch/pdp10/conf/``machineid'' +# after which you should do +# config machineid +# Machine generic makefile changes should be made in +# /sys/arch/pdp10/conf/Makefile.pdp10 +# after which config should be rerun for all machines of that type. +# +# To specify debugging, add the config line: makeoptions DEBUG="-g" +# A better way is to specify -g only for a few files. +# +# makeoptions DEBUGLIST="uvm* trap if_*" + +MACHINE_ARCH= pdp10 +USETOOLS?= no +NEED_OWN_INSTALL_TARGET?=no +.include + +## +## (1) port identification +## +PDP10= $S/arch/pdp10 +GENASSYM= ${PDP10}/pdp10/genassym.cf + +## +## (2) compile settings +## +AFLAGS+= -x assembler-with-cpp -traditional-cpp + +## +## (3) libkern and compat +## +KERN_AS= obj + +## +## (4) local objects, compile rules, and dependencies +## +MD_SFILES= ${PDP10}/pdp10/locore.S +MD_OBJS= locore.o +#XCFLAGS= ${DEBUG} ${CWARNFLAGS} -ffreestanding +#NOOPT_C?= ${CC} ${XCFLAGS} ${CPPFLAGS} ${${<:T:R}_G} ${PROF} -c $< + +locore.o: ${PDP10}/pdp10/locore.S + ${NORMAL_S} + +## +## (5) link settings +## +TEXTADDR?= 01001000 +LINKFORMAT= +LINKFLAGS_DEBUG= -X +LINKFLAGS_NORMAL= -S -y -E + +## +## (6) port specific target dependencies +## + +## +## (7) misc settings +## + +## +## (8) config(8) generated machinery +## +%INCLUDES + +%OBJS + +%CFILES + +%SFILES + +%LOAD + +%RULES + +## +## (9) port independent kernel machinery +## +.include "$S/conf/Makefile.kern.inc" diff --git a/sys/arch/pdp10/conf/files.pdp10 b/sys/arch/pdp10/conf/files.pdp10 new file mode 100644 index 000000000000..5def35f5d318 --- /dev/null +++ b/sys/arch/pdp10/conf/files.pdp10 @@ -0,0 +1,46 @@ +# $NetBSD: files.pdp10,v 1.1 2003/08/19 10:49:57 ragge Exp $ +# +# `files' file for pdp10 architecture +# + +# maxpartitions must be first item in files.${ARCH}.newconf +maxpartitions 16 + +maxusers 8 32 64 + +device mainbus { } +attach mainbus at root + +file dev/cons.c + +file arch/pdp10/pdp10/machdep.c +file arch/pdp10/pdp10/vm_machdep.c +file arch/pdp10/pdp10/autoconf.c +file arch/pdp10/pdp10/pmap.c +file arch/pdp10/pdp10/clock.c +file arch/pdp10/pdp10/trap.c +file arch/pdp10/pdp10/mem.c +file arch/pdp10/pdp10/console.c +file arch/pdp10/pdp10/disksubr.c disk | tape +file arch/pdp10/pdp10/kl10.c kl10 +file arch/pdp10/pdp10/db_machdep.c ddb +file arch/pdp10/pdp10/db_disasm.c ddb + +device ebus { csr } +attach ebus at mainbus +file arch/pdp10/dev/ebus.c ebus + +device rh { drive=-1 } +attach rh at ebus +file arch/pdp10/dev/rh.c rh + +device hp: disk +attach hp at rh +file arch/pdp10/dev/hp.c hp needs-flag +major {hp = 0} + + +file netinet/in4_cksum.c inet +file netinet/in_cksum.c inet + +include "arch/pdp10/conf/majors.pdp10" diff --git a/sys/arch/pdp10/conf/majors.pdp10 b/sys/arch/pdp10/conf/majors.pdp10 new file mode 100644 index 000000000000..f0185ac164a8 --- /dev/null +++ b/sys/arch/pdp10/conf/majors.pdp10 @@ -0,0 +1,10 @@ +# $NetBSD: majors.pdp10,v 1.1 2003/08/19 10:49:58 ragge Exp $ +# +# Device majors for pdp10 +# +device-major cons char 0 +device-major ctty char 1 +device-major mem char 2 +device-major hp char 3 block 0 hp +device-major ht char 4 block 1 ht +device-major swap char 5 block 3 diff --git a/sys/arch/pdp10/conf/std.pdp10 b/sys/arch/pdp10/conf/std.pdp10 new file mode 100644 index 000000000000..bfb3466427f8 --- /dev/null +++ b/sys/arch/pdp10/conf/std.pdp10 @@ -0,0 +1,8 @@ +# $NetBSD: std.pdp10,v 1.1 2003/08/19 10:49:58 ragge Exp $ +# +# Std pdp10files +# +machine pdp10 + +options EXEC_SCRIPT # execve(2) support for scripts +options EXEC_ELF36 # execve(2) support for ELF36 binaries