Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/arch/sun3/stand Pull up file removal (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/8d817018abba
branches:  netbsd-1-6
changeset: 527580:8d817018abba
user:      tv <tv%NetBSD.org@localhost>
date:      Tue May 28 23:08:07 2002 +0000

description:
Pull up file removal (requested by nathanw in ticket #51):
Remove in favor of sun68k/stand.

diffstat:

 sys/arch/sun3/stand/Makefile.inc              |   56 ---
 sys/arch/sun3/stand/README                    |   38 --
 sys/arch/sun3/stand/bootxx/Makefile           |   15 -
 sys/arch/sun3/stand/bootxx/bootxx.c           |  142 -------
 sys/arch/sun3/stand/bootxx/conf.c             |   11 -
 sys/arch/sun3/stand/installboot/Makefile      |   21 -
 sys/arch/sun3/stand/installboot/installboot.c |  336 ------------------
 sys/arch/sun3/stand/libsa/Makefile            |   66 ---
 sys/arch/sun3/stand/libsa/SRT0.S              |  149 --------
 sys/arch/sun3/stand/libsa/SRT1.c              |  126 ------
 sys/arch/sun3/stand/libsa/clock.c             |   27 -
 sys/arch/sun3/stand/libsa/dev_disk.c          |  182 ---------
 sys/arch/sun3/stand/libsa/dev_disk.h          |    8 -
 sys/arch/sun3/stand/libsa/devopen.c           |   35 -
 sys/arch/sun3/stand/libsa/dvma.h              |   62 ---
 sys/arch/sun3/stand/libsa/gets.c              |  116 ------
 sys/arch/sun3/stand/libsa/idprom.c            |  159 --------
 sys/arch/sun3/stand/libsa/libsa.h             |   46 --
 sys/arch/sun3/stand/libsa/netif.h             |   17 -
 sys/arch/sun3/stand/libsa/netif_sun.c         |  474 --------------------------
 sys/arch/sun3/stand/libsa/panic.c             |   19 -
 sys/arch/sun3/stand/libsa/promboot.c          |   75 ----
 sys/arch/sun3/stand/libsa/promcons.c          |   27 -
 sys/arch/sun3/stand/libsa/promdev.c           |  153 --------
 sys/arch/sun3/stand/libsa/saio.h              |  168 ---------
 sys/arch/sun3/stand/libsa/sun3.c              |  297 ----------------
 sys/arch/sun3/stand/libsa/sun3x.c             |  330 ------------------
 sys/arch/sun3/stand/libsa/version             |   20 -
 sys/arch/sun3/stand/libsa/xxboot.c            |  152 --------
 sys/arch/sun3/stand/netboot/Makefile          |   17 -
 sys/arch/sun3/stand/netboot/conf.c            |   23 -
 sys/arch/sun3/stand/tapeboot/Makefile         |   10 -
 sys/arch/sun3/stand/tapeboot/boot.c           |  109 -----
 sys/arch/sun3/stand/tapeboot/conf.c           |   20 -
 sys/arch/sun3/stand/tapeboot/dev_tape.c       |  205 -----------
 sys/arch/sun3/stand/tapeboot/dev_tape.h       |    8 -
 sys/arch/sun3/stand/tapeboot/rawfs.c          |  207 -----------
 sys/arch/sun3/stand/tapeboot/rawfs.h          |   15 -
 sys/arch/sun3/stand/ufsboot/Makefile          |   16 -
 sys/arch/sun3/stand/ufsboot/conf.c            |   20 -
 40 files changed, 0 insertions(+), 3977 deletions(-)

diffs (truncated from 4137 to 300 lines):

diff -r 163aa2262c0f -r 8d817018abba sys/arch/sun3/stand/Makefile.inc
--- a/sys/arch/sun3/stand/Makefile.inc  Tue May 28 23:04:38 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,56 +0,0 @@
-#      $NetBSD: Makefile.inc,v 1.20 2002/02/09 09:36:01 lukem Exp $
-
-# Must have S=/usr/src/sys (or equivalent)
-# But note: this is w.r.t. a subdirectory
-S=     ${.CURDIR}/../../../..
-
-.if defined(SA_PROG)
-
-.include <bsd.own.mk>
-
-LIBSA!=cd ${.CURDIR}/../libsa && ${PRINTOBJDIR}
-
-MDEC_DIR?=/usr/mdec
-
-RELOC?= 240000
-DEFS?= -Dsun3 -D_STANDALONE
-INCL?= -I. -I${.CURDIR} -I${.CURDIR}/../libsa -I${S}/lib/libsa -I${S}
-
-CFLAGS= -Os -msoft-float -fno-defer-pop -Wno-main
-CPPFLAGS= ${DEFS} ${INCL}
-
-SRTOBJ= ${LIBSA}/SRT0.o ${LIBSA}/SRT1.o
-SRTLIB= ${LIBSA}/libsa.a
-
-CLEANFILES+= ${SA_PROG} ${SA_PROG}.bin
-
-# Make a copy of the executable with its ELF headers removed.
-${SA_PROG}.bin : ${SA_PROG}
-       ${OBJCOPY} --output-target=binary ${SA_PROG} $@
-
-${SA_PROG} : ${OBJS} ${DPADD} ${SRTLIB}
-       ${LD} -N -Ttext ${RELOC} -e start -o $@ \
-         ${SRTOBJ} ${OBJS} ${LDADD} ${SRTLIB}
-       @${SIZE} $@
-
-.if !target(proginstall)
-realall: ${SA_PROG} ${SA_PROG}.bin
-proginstall: ${SA_PROG}.bin
-       ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
-               ${SA_PROG}.bin ${DESTDIR}${MDEC_DIR}/${SA_PROG}
-.endif
-
-.endif # defined(SA_PROG)
-
-CLEANFILES+= machine m68k
-.BEGIN: machine m68k
-.NOPATH: machine m68k
-realall realdepend: machine m68k
-
-machine :
-       -rm -f $@
-       ln -s ${S}/arch/sun3/include $@
-
-m68k :
-       -rm -f $@
-       ln -s ${S}/arch/m68k/include $@
diff -r 163aa2262c0f -r 8d817018abba sys/arch/sun3/stand/README
--- a/sys/arch/sun3/stand/README        Tue May 28 23:04:38 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,38 +0,0 @@
-/*     $NetBSD: README,v 1.3 1995/11/17 23:23:45 gwr Exp $ */
-
-The sun bootblocks are split into two parts: a small 1st-level program that
-gets written right after the superblock in a partition (and is hence limited
-in size to SBSIZE - DEV_BSIZE bytes), and a 2nd-level program that resides
-in the filesystem proper.
-
-The 1st-level program is loaded into memory by the PROM. It loads the second
-stage program from a set of filesystem block numbers that are hard-coded
-into it by the `installboot' program. The prototype code for the 1st-level
-bootblocks are in `bootxx'.
-
-The 2nd-level program (`ufsboot') is normally installed in the root FS
-as `/ufsboot'. It uses the device drivers in the PROM and the stand-alone
-filesystem code in `libsa.a' to locate and load the kernel.
-
-Use the following command to install the 1st-level bootblocks in the
-root filesystem (on `sd0a') using the file `/boot' as the second level
-boot program:
-
-       mount /dev/sd0a /mnt
-       cd /usr/mdec
-       cp -p ufsboot /mnt/ufsboot
-       sync ; sleep 1 ; sync
-       ./installboot -v /mnt/ufsboot bootxx /dev/rsd0a
-
-The above only works with securelevel <= 0 (see init.8 manual).
-
-Status:
-
-netboot works.
-
-bootxx, installboot are tested and working.  It would be nice if
-installboot would find the inumber for the 2nd stage boot program
-without having the filesystem mounted so this command can work
-with securelevel==1 (the default).  Doing this requies adding
-code to read and do a directory lookup in the root...
-
diff -r 163aa2262c0f -r 8d817018abba sys/arch/sun3/stand/bootxx/Makefile
--- a/sys/arch/sun3/stand/bootxx/Makefile       Tue May 28 23:04:38 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-#      $NetBSD: Makefile,v 1.11 2002/02/09 09:36:02 lukem Exp $
-
-SA_PROG= bootxx
-SRCS=   bootxx.c conf.c
-
-# Do not strip or remove a.out header for this one.
-proginstall: ${SA_PROG}
-       ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
-               ${SA_PROG} ${DESTDIR}${MDEC_DIR}/${SA_PROG}
-
-PROG=  ${SA_PROG}
-NOMAN= # defined
-
-.include <bsd.prog.mk>
-
diff -r 163aa2262c0f -r 8d817018abba sys/arch/sun3/stand/bootxx/bootxx.c
--- a/sys/arch/sun3/stand/bootxx/bootxx.c       Tue May 28 23:04:38 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,142 +0,0 @@
-/*     $NetBSD: bootxx.c,v 1.10 2001/02/22 07:11:10 chs Exp $ */
-
-/*-
- * Copyright (c) 1998 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Paul Kranenburg.
- *
- * 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 NetBSD
- *        Foundation, Inc. and its contributors.
- * 4. Neither the name of The NetBSD Foundation 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 NETBSD FOUNDATION, INC. 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 FOUNDATION 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.
- */
-
-/*
- * This is a generic "first-stage" boot program.
- *
- * Note that this program has absolutely no filesystem knowledge!
- *
- * Instead, this uses a table of disk block numbers that are
- * filled in by the installboot program such that this program
- * can load the "second-stage" boot program.
- */
-
-#include <sys/param.h>
-#include <machine/mon.h>
-
-#include <stand.h>
-#include "libsa.h"
-
-/*
- * This is the address where we load the second-stage boot loader.
- */
-#define LOADADDR       0x4000
-
-/* This determines the largest boot program we can load. */
-#define MAXBLOCKNUM    64
-
-/*
- * These three names are known by installboot.
- * The block_table contains starting block numbers,
- * in terms of 512-byte blocks.  Each non-zero value
- * will result in a read of block_size bytes.
- */
-int            block_size = 512;       /* default */
-int            block_count = MAXBLOCKNUM;      /* length of table */
-daddr_t        block_table[MAXBLOCKNUM] = { 0 };
-
-
-void
-main()
-{
-       struct open_file        f;
-       void    *entry;
-       char    *addr;
-       int n, error;
-
-#ifdef DEBUG
-       printf("bootxx: open...\n");
-#endif
-       f.f_flags = F_RAW;
-       if (devopen(&f, 0, &addr)) {
-               printf("bootxx: devopen failed\n");
-               return;
-       }
-
-       addr = (char*)LOADADDR;
-       error = copyboot(&f, addr);
-       f.f_dev->dv_close(&f);
-       if (!error) {
-#ifdef DEBUG
-               printf("bootxx: start 0x%x\n", (long)addr);
-#endif
-               entry = addr;
-               chain_to(entry);
-       }
-       /* copyboot had a problem... */
-       return;
-}
-
-int
-copyboot(fp, addr)
-       struct open_file        *fp;
-       char                    *addr;
-{
-       int     n, i, blknum;
-       char *buf;
-
-       /* Need to use a buffer that can be mapped into DVMA space. */
-       buf = alloc(block_size);
-       if (!buf)
-               panic("bootxx: alloc failed");
-
-       for (i = 0; i < block_count; i++) {
-
-               if ((blknum = block_table[i]) == 0)
-                       break;
-
-#ifdef DEBUG
-               printf("bootxx: block # %d = %d\n", i, blknum);
-#endif
-               if ((fp->f_dev->dv_strategy)(fp->f_devdata, F_READ,
-                                          blknum, block_size, buf, &n))
-               {
-                       printf("bootxx: read failed\n");
-                       return -1;
-               }
-               if (n != block_size) {
-                       printf("bootxx: short read\n");
-                       return -1;
-               }
-               bcopy(buf, addr, block_size);
-               addr += block_size;
-       }
-
-       return 0;
-}
-
diff -r 163aa2262c0f -r 8d817018abba sys/arch/sun3/stand/bootxx/conf.c
--- a/sys/arch/sun3/stand/bootxx/conf.c Tue May 28 23:04:38 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-/*     $NetBSD: conf.c,v 1.2 1995/10/13 21:45:00 gwr Exp $     */
-
-#include <stand.h>
-#include <dev_disk.h>
-
-struct devsw devsw[] = {
-       { "disk", disk_strategy, disk_open, disk_close, disk_ioctl },
-};
-int    ndevs = 1;
-
-int debug;
diff -r 163aa2262c0f -r 8d817018abba sys/arch/sun3/stand/installboot/Makefile
--- a/sys/arch/sun3/stand/installboot/Makefile  Tue May 28 23:04:38 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-#      $NetBSD: Makefile,v 1.16 2001/12/12 12:24:25 lukem Exp $
-
-NOMAN= # defined
-
-.include <bsd.own.mk>
-
-PROG=  installboot
-BINDIR=/usr/mdec
-S= ${.CURDIR}/../../../..
-LIBSA=${S}/lib/libsa
-CPPFLAGS+= -I${LIBSA} -I.
-WARNS?= 1
-
-# Need this to work in the miniroot



Home | Main Index | Thread Index | Old Index