From c47e65ed50d47d3a2ef0be9e4bf5996486f7e9cc Mon Sep 17 00:00:00 2001 From: rahnds <> Date: Tue, 25 Mar 1997 17:07:30 +0000 Subject: [PATCH] Ok here is the mvme88k userland, minus a few important pieces. as, ld change need to be merged. It is known that shared libraries and C++ do not work. If anyone wants to step forward and take over the mvme88k port please do. It was dumped on me when the original developer, Nivas, left his previous job and started a new one. I am trying to get the port in a shape that someone could take over. --- src/etc/etc.mvme88k/MAKEDEV | 251 +++++++++++++++++++++++++++++++ src/etc/etc.mvme88k/Makefile.inc | 16 ++ src/etc/etc.mvme88k/disktab | 63 ++++++++ src/etc/etc.mvme88k/fstab.nfs | 2 + src/etc/etc.mvme88k/ttys | 49 ++++++ src/lib/libc/stdlib/strtod.c | 4 +- 6 files changed, 383 insertions(+), 2 deletions(-) create mode 100644 src/etc/etc.mvme88k/MAKEDEV create mode 100644 src/etc/etc.mvme88k/Makefile.inc create mode 100644 src/etc/etc.mvme88k/disktab create mode 100644 src/etc/etc.mvme88k/fstab.nfs create mode 100644 src/etc/etc.mvme88k/ttys diff --git a/src/etc/etc.mvme88k/MAKEDEV b/src/etc/etc.mvme88k/MAKEDEV new file mode 100644 index 00000000..c16029d7 --- /dev/null +++ b/src/etc/etc.mvme88k/MAKEDEV @@ -0,0 +1,251 @@ +#!/bin/sh - +# +# $NetBSD: MAKEDEV,v 1.5 1997/01/01 23:46:23 pk Exp $ +# +# Copyright (c) 1990 The Regents of the University of California. +# All rights reserved. +# +# Written and contributed by W. Jolitz 12/90 +# +# Redistribution and use in source and binary forms are permitted provided +# that: (1) source distributions retain this entire copyright notice and +# comment, and (2) distributions including binaries display the following +# acknowledgement: ``This product includes software developed by the +# University of California, Berkeley and its contributors'' in the +# documentation or other materials provided with the distribution and in +# all advertising materials mentioning features or use of this software. +# 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 ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +# +# @(#)MAKEDEV 5.2 (Berkeley) 6/22/90 +# +# Device "make" file. Valid arguments: +# all makes all known devices, including local devices. +# Tries to make the 'standard' number of each type. +# std standard devices +# local configuration specific devices +# +# Tapes: +# st* SCSI tapes +# +# Disks: +# sd* SCSI disks +# cd* SCSI CD-ROM +# vnd* "file" pseudo-disks +# md* "memory" pseudo-disks +# ccd* contatenated disk devices +# +# Pseudo terminals: +# pty* set of 16 master and slave pseudo terminals +# +# Printers: +# lpt* stock lp +# lpa* interruptless lp +# +# Call units: +# +# Special purpose devices: +# fd file descriptors +# bpf* packet filter +# lkm loadable kernel modules interface +# tun* network tunnel driver +# ss* SCSI scanner +# uk* SCSI unknown +# ch* SCSI changer +# + +PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/etc +umask 77 +for i +do +case $i in + +all) + sh $0 std fd sd0 sd1 sd2 pty0 + sh $0 st0 st1 ch0 cd0 cd1 lpa0 lpt0 vnd0 vnd1 + sh $0 bpf0 bpf1 bpf2 bpf3 tun0 tun1 + sh $0 ccd0 ccd1 ccd2 ccd3 md0 ss0 ch0 uk0 uk1 lkm + sh $0 local + ;; + +std) + rm -f console drum mem kmem null zero tty klog stdin stdout stderr + mknod console c 0 0 + mknod drum c 3 0 ; chmod 640 drum ; chgrp kmem drum + mknod kmem c 2 1 ; chmod 640 kmem ; chgrp kmem kmem + mknod mem c 2 0 ; chmod 640 mem ; chgrp kmem mem + mknod null c 2 2 ; chmod 666 null + mknod zero c 2 12 ; chmod 666 zero + mknod tty c 1 0 ; chmod 666 tty + mknod klog c 6 0 ; chmod 600 klog + mknod stdin c 21 0 ; chmod 666 stdin + mknod stdout c 21 1 ; chmod 666 stdout + mknod stderr c 21 2 ; chmod 666 stderr + ;; + +fd) + rm -f fd/* + mkdir fd > /dev/null 2>&1 + (cd fd && eval `echo "" | awk ' BEGIN { \ + for (i = 0; i < 64; i++) \ + printf("mknod %d c 21 %d;", i, i)}'`) + chown -R bin.bin fd + chmod 555 fd + chmod 666 fd/* + ;; + +md*) + case $i in + md*) name=md; unit=${i#md}; chr=32; blk=9;; + esac + rm -f $name$unit r$name$unit + mknod $name$unit b $blk $(($unit + 0)) + mknod r$name$unit c $chr $(($unit + 16)) + chgrp operator $name$unit r$name$unit + chmod 640 $name$unit r$name$unit + ;; + +ss*) + case $i in + ss*) name=ss; unit=${i#ss}; chr=33;; + esac + rm -f $name$unit n$name$unit + mknod $name$unit c $chr $(($unit * 16 + 0)) + mknod n$name$unit c $chr $(($unit * 16 + 1)) + chgrp operator $name$unit n$name$unit + chmod 640 $name$unit n$name$unit + ;; + +ccd*|sd*|vnd*) + case $i in + ccd*) name=ccd; unit=${i#ccd}; blk=5; chr=17;; + sd*) name=sd; unit=${i#sd}; blk=4; chr=8;; + vnd*) name=vnd; unit=${i#vnd}; blk=6; chr=19;; + esac + rm -f $name$unit? r$name$unit? + mknod ${name}${unit}a b $blk $(($unit * 8 + 0)) + mknod ${name}${unit}b b $blk $(($unit * 8 + 1)) + mknod ${name}${unit}c b $blk $(($unit * 8 + 2)) + mknod ${name}${unit}d b $blk $(($unit * 8 + 3)) + mknod ${name}${unit}e b $blk $(($unit * 8 + 4)) + mknod ${name}${unit}f b $blk $(($unit * 8 + 5)) + mknod ${name}${unit}g b $blk $(($unit * 8 + 6)) + mknod ${name}${unit}h b $blk $(($unit * 8 + 7)) + mknod r${name}${unit}a c $chr $(($unit * 8 + 0)) + mknod r${name}${unit}b c $chr $(($unit * 8 + 1)) + mknod r${name}${unit}c c $chr $(($unit * 8 + 2)) + mknod r${name}${unit}d c $chr $(($unit * 8 + 3)) + mknod r${name}${unit}e c $chr $(($unit * 8 + 4)) + mknod r${name}${unit}f c $chr $(($unit * 8 + 5)) + mknod r${name}${unit}g c $chr $(($unit * 8 + 6)) + mknod r${name}${unit}h c $chr $(($unit * 8 + 7)) + chgrp operator $name$unit? r$name$unit? + chmod 640 $name$unit? r$name$unit? + ;; + +pty*) + class=${i#pty} + case $class in + 0) offset=0 name=p;; + 1) offset=16 name=q;; + 2) offset=32 name=r;; + 3) offset=48 name=s;; +# Note that telnetd, rlogind, and xterm (at least) only look at p-s. + 4) offset=64 name=t;; + *) echo bad unit for pty in: $i;; + esac + case $class in + 0|1|2|3|4) + umask 0 + eval `echo $offset $name | awk ' { b=$1; n=$2 } END { + for (i = 0; i < 16; i++) + printf("rm -f tty%s%x; mknod tty%s%x c 4 %d; \ + rm -f pty%s%x; mknod pty%s%x c 5 %d; ", \ + n, i, n, i, b+i, n, i, n, i, b+i); }'` + umask 77 + ;; + esac + ;; + +st*) + case $i in + st*) name=st; unit=${i#st}; chr=20; blk=7;; + esac + rm -f $name$unit n$name$unit e$name$unit en$name$unit \ + r$name$unit nr$name$unit er$name$unit enr$name$unit + mknod $name$unit b $blk $(($unit * 16 + 0)) + mknod n$name$unit b $blk $(($unit * 16 + 1)) + mknod e$name$unit b $blk $(($unit * 16 + 2)) + mknod en$name$unit b $blk $(($unit * 16 + 3)) + mknod r$name$unit c $chr $(($unit * 16 + 0)) + mknod nr$name$unit c $chr $(($unit * 16 + 1)) + mknod er$name$unit c $chr $(($unit * 16 + 2)) + mknod enr$name$unit c $chr $(($unit * 16 + 3)) + chgrp operator $name$unit n$name$unit e$name$unit en$name$unit \ + r$name$unit nr$name$unit er$name$unit enr$name$unit + chmod 640 $name$unit n$name$unit e$name$unit en$name$unit \ + r$name$unit nr$name$unit er$name$unit enr$name$unit + ;; + +ch*|uk*) + case $i in + ch*) name=ch; unit=${i#ch}; chr=31;; + uk*) name=uk; unit=${i#uk}; chr=34;; + esac + rm -f $name$unit + mknod $name$unit c $chr $unit + chgrp operator $name$unit + chmod 640 $name$unit + ;; + +cd*) + case $i in + cd*) name=cd; unit=${i#cd}; chr=18; blk=8;; + esac + rm -f $name$unit? r$name$unit? + mknod ${name}${unit}a b $blk $(($unit * 8 + 0)) + mknod ${name}${unit}d b $blk $(($unit * 8 + 3)) + mknod r${name}${unit}a c $chr $(($unit * 8 + 0)) + mknod r${name}${unit}d c $chr $(($unit * 8 + 3)) + chgrp operator $name$unit? r$name$unit? + chmod 640 $name$unit? r$name$unit? + ;; + +lpt*|lpa*) + case $i in + lpt*) name=lpt; unit=${i#lpt}; chr=11; flags=0;; + lpa*) name=lpa; unit=${i#lpa}; chr=11; flags=128;; + esac + rm -f $name$unit + mknod $name$unit c $chr $(($unit + $flags)) + chown root.wheel $name$unit + ;; + +bpf*|tun*) + case $i in + bpf*) name=bpf; unit=${i#bpf}; chr=22;; + tun*) name=tun; unit=${i#tun}; chr=23;; + esac + rm -f $name$unit + mknod $name$unit c $chr $unit + chown root.wheel $name$unit + ;; + +lkm) + rm -f lkm + mknod lkm c 24 0 + chown root.kmem lkm + chmod 640 lkm + ;; + +local) + umask 0 + sh $0.local + ;; + +esac +done diff --git a/src/etc/etc.mvme88k/Makefile.inc b/src/etc/etc.mvme88k/Makefile.inc new file mode 100644 index 00000000..41bbf7d4 --- /dev/null +++ b/src/etc/etc.mvme88k/Makefile.inc @@ -0,0 +1,16 @@ +# +# etc.mvme88k/Makefile.inc -- mvme88k-specific etc Makefile targets +# +# $Id: Makefile.inc,v 1.1 1997/03/25 17:06:36 rahnds Exp $ + +.ifdef DESTDIR +snap_md: bsd-generic bootblocks + cp ${.CURDIR}/../sys/arch/mvme88k/compile/GENERIC/bsd.gz \ + ${DESTDIR}/snapshot/bsd-generic.gz +bsd-generic: + cd ${.CURDIR}/../sys/arch/mvme88k/conf && config GENERIC + cd ${.CURDIR}/../sys/arch/mvme88k/compile/GENERIC && \ + make clean && make depend && make && gzip -9 bsd +bootblocks: + cp ${DESTDIR}/usr/mdec/* ${DESTDIR}/snapshot/ +.endif # DESTDIR check diff --git a/src/etc/etc.mvme88k/disktab b/src/etc/etc.mvme88k/disktab new file mode 100644 index 00000000..edc2b638 --- /dev/null +++ b/src/etc/etc.mvme88k/disktab @@ -0,0 +1,63 @@ +# Disk geometry and partition layout tables. +# Key: +# dt controller type +# ty type of disk (fixed, removeable, simulated) +# d[0-4] drive-type-dependent parameters +# ns #sectors/track +# nt #tracks/cylinder +# nc #cylinders/disk +# sc #sectors/cylinder, ns*nt default +# su #sectors/unit, sc*nc default +# se sector size, DEV_BSIZE default +# rm rpm, 3600 default +# sf supports bad144-style bad sector forwarding +# sk sector skew per track, default 0 +# cs sector skew per cylinder, default 0 +# hs headswitch time, default 0 +# ts one-cylinder seek time, default 0 +# il sector interleave (n:1), 1 default +# bs boot block size, default BBSIZE +# sb superblock size, default SBSIZE +# o[a-h] partition offsets in sectors +# p[a-h] partition sizes in sectors +# b[a-h] partition block sizes in bytes +# f[a-h] partition fragment sizes in bytes +# t[a-h] partition types (filesystem, swap, etc) +# +# All partition sizes reserve space for bad sector tables. +# (5 cylinders needed for maintenance + replacement sectors) +# +fuji2614S|fuji171|FUJITSU M2614S:\ + :ty=SCSI:se#512:nt#8:ns#32:nc#1336:\ + :pa#29952:oa#256:ba#8192:fa#1024:ta=4.2BSD:\ + :pb#60416:ob#30208:tb=swap:\ + :pc#342016:oc#0:\ + :ph#251392:oh#90624:bh#8192:fh#1024:th=4.2BSD:\ + +CDC94351|CDC 164 MB SCSI disk:\ + :ty=SCSI:se#512:nt#9:rm#3600:ns#34:nc#1068:\ + :pa#30294:oa#306:ba#8192:fa#1024:ta=4.2BSD:\ + :pb#61200:ob#30600:tb=swap:\ + :pc#326808:oc#0:\ + :ph#235008:oh#91800:bh#8192:fh#1024:th=4.2BSD: + +fuji2624S|FUJITSU 2624S:\ + :ty=winchester:dt=SCSI:se#512:nt#11:ns#64:nc#1429:\ + :pa#29568:oa#704:ba#8192:fa#1024:ta=4.2BSD:\ + :pb#39424:ob#30272:tb=swap:\ + :pc#1006016:oc#0:\ + :pg#299904:og#69696:bg#8192:fg#1024:tg=4.2BSD:\ + :ph#636416:oh#369600:bh#8192:fh#1024:th=4.2BSD: + +cdc94181|CDC 94181-15:\ + :ty=winchester:dt=SCSI:se#512:nt#15:ns#51:nc#1546:\ + :pa#29835:oa#765:ba#8192:fa#1024:ta=4.2BSD:\ + :pb#79560:ob#30600:tb=swap:\ + :pc#1182690:oc#0:\ + :pg#306000:og#110160:bg#8192:fg#1024:tg=4.2BSD:\ + :ph#766530:oh#416160:bh#8192:fh#1024:th=4.2BSD: + +miniroot|2Meg Miniroot:\ + :ty=winchester:se#512:nt#1:ns#10:nc#400:\ + :pa#4000:oa#0:ba#8192:fa#1024:ta=4.2BSD:\ + :pc#4000:oc#0: diff --git a/src/etc/etc.mvme88k/fstab.nfs b/src/etc/etc.mvme88k/fstab.nfs new file mode 100644 index 00000000..4498f04e --- /dev/null +++ b/src/etc/etc.mvme88k/fstab.nfs @@ -0,0 +1,2 @@ +nfs-server:/export/root/vme187 / nfs rw,-P 0 0 +nfs-server:/export/exec/mvme88k /usr nfs rw,-P 0 0 diff --git a/src/etc/etc.mvme88k/ttys b/src/etc/etc.mvme88k/ttys new file mode 100644 index 00000000..d20eea05 --- /dev/null +++ b/src/etc/etc.mvme88k/ttys @@ -0,0 +1,49 @@ +# +# from: @(#)ttys 5.1 (Berkeley) 4/17/89 +# $Id: ttys,v 1.1 1997/03/25 17:06:40 rahnds Exp $ +# +# name getty type status comments +# +# If the console is marked insecure, single-user requires +# the root password. +console "/usr/libexec/getty Pc" unknown off secure +ttye0 "/usr/libexec/getty Pc" unknown on secure clocal +ttye1 "/usr/libexec/getty Pc" unknown on +ttye2 "/usr/libexec/getty Pc" unknown off +ttye3 "/usr/libexec/getty Pc" unknown off +#tty00 "/usr/libexec/getty std.9600" unknown off secure clocal # int. serial. +#tty01 "/usr/libexec/getty std.9600" unknown off clocal # int. serial. +#tty02 "/usr/libexec/getty std.9600" unknown off clocal # int. serial. +#tty03 "/usr/libexec/getty std.9600" unknown off clocal # int. serial. +ttyp0 none network +ttyp1 none network +ttyp2 none network +ttyp3 none network +ttyp4 none network +ttyp5 none network +ttyp6 none network +ttyp7 none network +ttyp8 none network +ttyp9 none network +ttypa none network +ttypb none network +ttypc none network +ttypd none network +ttype none network +ttypf none network +ttyq0 none network +ttyq1 none network +ttyq2 none network +ttyq3 none network +ttyq4 none network +ttyq5 none network +ttyq6 none network +ttyq7 none network +ttyq8 none network +ttyq9 none network +ttyqa none network +ttyqb none network +ttyqc none network +ttyqd none network +ttyqe none network +ttyqf none network diff --git a/src/lib/libc/stdlib/strtod.c b/src/lib/libc/stdlib/strtod.c index 5ee50867..a4ba9930 100644 --- a/src/lib/libc/stdlib/strtod.c +++ b/src/lib/libc/stdlib/strtod.c @@ -90,12 +90,12 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: strtod.c,v 1.8 1997/01/09 03:19:01 rahnds Exp $"; +static char *rcsid = "$OpenBSD: strtod.c,v 1.9 1997/03/25 17:07:30 rahnds Exp $"; #endif /* LIBC_SCCS and not lint */ #if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \ defined(__mips__) || defined(__ns32k__) || defined(__alpha__) || \ - defined(__powerpc__) + defined(__powerpc__) || defined(__m88k__) #include #if BYTE_ORDER == BIG_ENDIAN #define IEEE_BIG_ENDIAN