summaryrefslogtreecommitdiffstats
path: root/sys/boot/alpha
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1999-09-03 19:42:18 +0000
committermsmith <msmith@FreeBSD.org>1999-09-03 19:42:18 +0000
commitfc224426ed4ab8a5e328690796fa0b41fa490b31 (patch)
treef6454e2bee072f4d272ac74346200f72721f4d64 /sys/boot/alpha
parent3a2a2ef94263b7ce1524a3e8e6c756614d0e5add (diff)
downloadFreeBSD-src-fc224426ed4ab8a5e328690796fa0b41fa490b31.zip
FreeBSD-src-fc224426ed4ab8a5e328690796fa0b41fa490b31.tar.gz
Slight reorganisation of the Alpha/SRM loader build:
- Make as much of the makefile for each of the three flavours (disk, CDROM, net) common. - Special-case the libalpha startup module on its use in boot1, not the other way around. - Build the loader out of a "loader" directory Reviewed by: mjacob, dfr
Diffstat (limited to 'sys/boot/alpha')
-rw-r--r--sys/boot/alpha/Makefile2
-rw-r--r--sys/boot/alpha/boot1/Makefile1
-rw-r--r--sys/boot/alpha/boot2/Makefile86
-rw-r--r--sys/boot/alpha/boot2/conf.c85
-rw-r--r--sys/boot/alpha/boot2/help.alpha0
-rw-r--r--sys/boot/alpha/cdboot/Makefile66
-rw-r--r--sys/boot/alpha/cdboot/conf.c86
-rw-r--r--sys/boot/alpha/libalpha/srmnet.c2
-rw-r--r--sys/boot/alpha/libalpha/start.S4
-rw-r--r--sys/boot/alpha/loader/Makefile13
-rw-r--r--sys/boot/alpha/loader/version (renamed from sys/boot/alpha/boot2/version)2
-rw-r--r--sys/boot/alpha/netboot/Makefile64
-rw-r--r--sys/boot/alpha/netboot/conf.c91
13 files changed, 26 insertions, 476 deletions
diff --git a/sys/boot/alpha/Makefile b/sys/boot/alpha/Makefile
index bc612ca..463a4c3 100644
--- a/sys/boot/alpha/Makefile
+++ b/sys/boot/alpha/Makefile
@@ -1,6 +1,6 @@
# $FreeBSD$
SUBDIR= libalpha
-SUBDIR+= boot1 boot2 netboot cdboot
+SUBDIR+= boot1 loader netboot cdboot
.include <bsd.subdir.mk>
diff --git a/sys/boot/alpha/boot1/Makefile b/sys/boot/alpha/boot1/Makefile
index bfbcb7a..dd12ce6 100644
--- a/sys/boot/alpha/boot1/Makefile
+++ b/sys/boot/alpha/boot1/Makefile
@@ -13,6 +13,7 @@ CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}
CFLAGS+= -I${LIBSTANDDIR}
CFLAGS+= -I${.CURDIR}/..
CFLAGS+= -DSECONDARY_LOAD_ADDRESS=${SECONDARY_LOAD_ADDRESS} -DMINIMAL
+CFLAGS+= -DBOOT1
NOMAN=1
STRIP=
BINDIR?= /boot
diff --git a/sys/boot/alpha/boot2/Makefile b/sys/boot/alpha/boot2/Makefile
deleted file mode 100644
index 2ae069e..0000000
--- a/sys/boot/alpha/boot2/Makefile
+++ /dev/null
@@ -1,86 +0,0 @@
-# $NetBSD: Makefile,v 1.12 1998/02/19 14:18:36 drochner Exp $
-
-BASE= loader
-PROG= ${BASE}
-NOMAN=
-NEWVERSWHAT= "SRM disk boot" alpha
-
-.PATH: ${.CURDIR}/../common
-
-# Alpha-specific bootstrap sources
-SRCS+= main.c conf.c
-
-# Always add MI sources
-.PATH: ${.CURDIR}/../../common
-.include <${.CURDIR}/../../common/Makefile.inc>
-CFLAGS+= -mno-fp-regs
-CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}
-CFLAGS+= -I${.CURDIR}/../../.. -I.
-CFLAGS+= -DLOADER
-CFLAGS+= -DPRIMARY_LOAD_ADDRESS=${PRIMARY_LOAD_ADDRESS} \
- -DSECONDARY_LOAD_ADDRESS=${SECONDARY_LOAD_ADDRESS}
-
-CLEANFILES+= vers.c vers.o gensetdefs.o gensetdefs setdef0.o setdef1.o \
- setdefs.h start.o
-CLEANFILES+= ${BASE} ${BASE}.sym ${BASE}.list
-
-CFLAGS+= -Wall
-
-CFLAGS+= -I${LIBSTANDDIR}
-CFLAGS+= -I${.CURDIR}/..
-CRT= start.o
-STRIP=
-BINDIR?= /boot
-
-all: ${BASE}
-
-vers.o: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version
- sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
- ${CC} -c vers.c
-
-${BASE}: ${BASE}.sym ${BASE}.help
- objcopy -O binary ${BASE}.sym ${BASE}
-
-${BASE}.sym: ${OBJS} ${LIBSTAND} ${LIBALPHA} ${CRT} vers.o setdef0.o setdef1.o
- ${LD} -o ${BASE}.sym -M -e start -N -Ttext ${SECONDARY_LOAD_ADDRESS} \
- ${CRT} setdef0.o ${OBJS} setdef1.o \
- vers.o ${LIBSTAND} ${LIBALPHA} ${LIBSTAND} >${.OBJDIR}/${BASE}.list
-
-${BASE}.help: help.common help.alpha
- cat ${.ALLSRC} | awk -f ${.CURDIR}/../../common/merge_help.awk > ${.TARGET}
-
-beforeinstall:
-.if exists(${.OBJDIR}/loader.help)
- ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
- ${.OBJDIR}/${BASE}.help ${DESTDIR}/boot
-.else
- ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
- ${.CURDIR}/${BASE}.help ${DESTDIR}/boot
-.endif
-
-# Other fragments still to be brought in from ../Makfile.booters?
-start.o: ${.CURDIR}/../libalpha/start.S
- ${CC} -c ${CFLAGS} $<
-
-setdef0.o: setdefs.h
-
-setdef1.o: setdefs.h
-
-machine:
- ln -sf ${.CURDIR}/../../../alpha/include machine
-
-CLEANFILES+= machine
-
-.include <bsd.prog.mk>
-
-setdefs.h: gensetdefs ${OBJS}
- @echo Generating linker sets
- @./gensetdefs ${OBJS} >setdefs.h
-
-gensetdefs: gensetdefs.o
- ${CC} -static gensetdefs.o -o $@
-
-gensetdefs.o: gensetdefs.c
- ${CC} -c $<
-
-beforedepend ${OBJS}: machine
diff --git a/sys/boot/alpha/boot2/conf.c b/sys/boot/alpha/boot2/conf.c
deleted file mode 100644
index a105c7f..0000000
--- a/sys/boot/alpha/boot2/conf.c
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * $FreeBSD$
- * From $NetBSD: conf.c,v 1.2 1997/03/22 09:03:29 thorpej Exp $
- */
-
-/*
- * Copyright (c) 1997
- * Matthias Drochner. 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 for the NetBSD Project
- * by Matthias Drochner.
- * 4. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
- */
-
-
-#include <stand.h>
-#include "libalpha/libalpha.h"
-
-/*
- * We could use linker sets for some or all of these, but
- * then we would have to control what ended up linked into
- * the bootstrap. So it's easier to conditionalise things
- * here.
- *
- * XXX rename these arrays to be consistent and less namespace-hostile
- */
-
-/* Exported for libstand */
-struct devsw *devsw[] = {
- &srmdisk,
- NULL
-};
-
-struct fs_ops *file_system[] = {
- &ufs_fsops,
- &zipfs_fsops,
- NULL
-};
-
-/* Exported for alpha only */
-/*
- * Sort formats so that those that can detect based on arguments
- * rather than reading the file go first.
- */
-extern struct module_format alpha_elf;
-
-struct module_format *module_formats[] = {
- &alpha_elf,
- NULL
-};
-
-/*
- * Consoles
- *
- * We don't prototype these in libalpha.h because they require
- * data structures from bootstrap.h as well.
- */
-extern struct console promconsole;
-
-struct console *consoles[] = {
- &promconsole,
- NULL
-};
diff --git a/sys/boot/alpha/boot2/help.alpha b/sys/boot/alpha/boot2/help.alpha
deleted file mode 100644
index e69de29..0000000
--- a/sys/boot/alpha/boot2/help.alpha
+++ /dev/null
diff --git a/sys/boot/alpha/cdboot/Makefile b/sys/boot/alpha/cdboot/Makefile
index c25d1f4..87bfffd 100644
--- a/sys/boot/alpha/cdboot/Makefile
+++ b/sys/boot/alpha/cdboot/Makefile
@@ -1,71 +1,11 @@
# $FreeBSD$
-# $NetBSD: Makefile,v 1.12 1998/02/19 14:18:36 drochner Exp $
BASE= cdboot
PROG= ${BASE}
NOMAN=
NEWVERSWHAT= "SRM CD9660 boot" alpha
+LOAD_ADDRESS= ${PRIMARY_LOAD_ADDRESS}
-.PATH: ${.CURDIR}/../common
-
-# i386-specific bootstrap sources
-SRCS+= main.c conf.c
-
-# Always add MI sources
-.PATH: ${.CURDIR}/../../common
-.include <${.CURDIR}/../../common/Makefile.inc>
-CFLAGS+= -mno-fp-regs
-CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}
-CFLAGS+= -I${.CURDIR}/../../.. -I.
-CFLAGS+= -I${.OBJDIR}
-CFLAGS+= -DCDBOOT
-
-CLEANFILES+= vers.c vers.o gensetdefs.o gensetdefs setdef0.o setdef1.o \
- setdefs.h start.o
-CLEANFILES+= ${BASE} ${BASE}.sym ${BASE}.list
-
-CFLAGS+= -Wall
-
-CFLAGS+= -I${LIBSTANDDIR}
-CFLAGS+= -I${.CURDIR}/..
-CRT= start.o
-STRIP=
-BINDIR?= /boot
-
-all: ${BASE}
-
-vers.o: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version
- sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
- ${CC} -c vers.c
-
-${BASE}: ${BASE}.sym
- objcopy -O binary ${BASE}.sym ${BASE}
-
-${BASE}.nosym: ${BASE}.sym
- cp ${BASE}.sym ${BASE}.nosym
- strip ${BASE}.nosym
-
-${BASE}.sym: ${OBJS} ${LIBSTAND} ${LIBALPHA} ${CRT} vers.o setdef0.o setdef1.o
- ${LD} -o ${BASE}.sym -M -e start -N -Ttext ${PRIMARY_LOAD_ADDRESS} \
- ${CRT} setdef0.o ${OBJS} setdef1.o \
- vers.o ${LIBSTAND} ${LIBALPHA} ${LIBSTAND} >${.OBJDIR}/${BASE}.list
-
-start.o: ${.CURDIR}/../libalpha/start.S
- ${CC} -c ${CFLAGS} $<
-
-setdef0.o: setdefs.h
-
-setdef1.o: setdefs.h
-
-.include <bsd.prog.mk>
-
-setdefs.h: gensetdefs ${OBJS}
- @echo Generating linker sets
- @./gensetdefs ${OBJS} >setdefs.h
-
-gensetdefs: gensetdefs.o
- ${CC} -static gensetdefs.o -o $@
-
-gensetdefs.o: gensetdefs.c
- ${CC} -c $<
+CFLAGS+= -DLOADER_CDROM_SUPPORT
+.include <${.CURDIR}/../common/Makefile.common>
diff --git a/sys/boot/alpha/cdboot/conf.c b/sys/boot/alpha/cdboot/conf.c
deleted file mode 100644
index 749a6fb..0000000
--- a/sys/boot/alpha/cdboot/conf.c
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * $FreeBSD$
- * From: $NetBSD: conf.c,v 1.2 1997/03/22 09:03:29 thorpej Exp $
- */
-
-/*
- * Copyright (c) 1997
- * Matthias Drochner. 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 for the NetBSD Project
- * by Matthias Drochner.
- * 4. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
- */
-
-
-#include <stand.h>
-#include "libalpha/libalpha.h"
-#include "dev_net.h"
-
-/*
- * We could use linker sets for some or all of these, but
- * then we would have to control what ended up linked into
- * the bootstrap. So it's easier to conditionalise things
- * here.
- *
- * XXX rename these arrays to be consistent and less namespace-hostile
- */
-
-/* Exported for libstand */
-struct devsw *devsw[] = {
- &srmdisk,
- NULL
-};
-
-struct fs_ops *file_system[] = {
- &cd9660_fsops,
- &zipfs_fsops,
- NULL
-};
-
-/* Exported for alpha only */
-/*
- * Sort formats so that those that can detect based on arguments
- * rather than reading the file go first.
- */
-extern struct module_format alpha_elf;
-
-struct module_format *module_formats[] = {
- &alpha_elf,
- NULL
-};
-
-/*
- * Consoles
- *
- * We don't prototype these in libalpha.h because they require
- * data structures from bootstrap.h as well.
- */
-extern struct console promconsole;
-
-struct console *consoles[] = {
- &promconsole,
- NULL
-};
diff --git a/sys/boot/alpha/libalpha/srmnet.c b/sys/boot/alpha/libalpha/srmnet.c
index d36e557..ad5ba47 100644
--- a/sys/boot/alpha/libalpha/srmnet.c
+++ b/sys/boot/alpha/libalpha/srmnet.c
@@ -173,12 +173,14 @@ prom_init(desc, machdep_hint)
if (netbbinfovalid)
netbbinfovalid = netbbinfo.set;
+#if 0
printf("netbbinfo ");
if (!netbbinfovalid)
printf("invalid\n");
else
printf("valid: force = %d, ea = %s\n", netbbinfo.force,
ether_sprintf(netbbinfo.ether_addr));
+#endif
ret.bits = prom_getenv(PROM_E_BOOTED_DEV, devname, sizeof(devname));
devlen = ret.u.retval;
diff --git a/sys/boot/alpha/libalpha/start.S b/sys/boot/alpha/libalpha/start.S
index 96be32f..e6af931 100644
--- a/sys/boot/alpha/libalpha/start.S
+++ b/sys/boot/alpha/libalpha/start.S
@@ -57,7 +57,7 @@ Lstartgp:
subq a1,a0,a1
CALL(bzero)
-#if defined(CDBOOT) || defined(NETBOOT) || defined(LOADER)
+#ifndef BOOT1
lda sp,stack + STACK_SIZE - ENTRY_FRAME
#endif
@@ -84,6 +84,6 @@ LEAF(cpu_number, 0)
RET
END(cpu_number)
-#if defined(CDBOOT) || defined(NETBOOT) || defined(LOADER)
+#ifndef BOOT1
BSS(stack, STACK_SIZE)
#endif
diff --git a/sys/boot/alpha/loader/Makefile b/sys/boot/alpha/loader/Makefile
new file mode 100644
index 0000000..c93a56b
--- /dev/null
+++ b/sys/boot/alpha/loader/Makefile
@@ -0,0 +1,13 @@
+# $Id$
+
+BASE= loader
+PROG= ${BASE}
+NOMAN=
+NEWVERSWHAT= "SRM disk boot" alpha
+INSTALL_HELP= yes
+LOAD_ADDRESS= ${SECONDARY_LOAD_ADDRESS}
+
+# Only disk support
+CFLAGS+= -DLOADER_DISK_SUPPORT
+
+.include <${.CURDIR}/../common/Makefile.common>
diff --git a/sys/boot/alpha/boot2/version b/sys/boot/alpha/loader/version
index bc9aa00..23262b9 100644
--- a/sys/boot/alpha/boot2/version
+++ b/sys/boot/alpha/loader/version
@@ -1,4 +1,4 @@
-$FreeBSD$
+$Id: version,v 1.1.1.1 1998/08/21 03:17:42 msmith Exp $
NOTE ANY CHANGES YOU MAKE TO THE BOOTBLOCKS HERE. The format of this
file is important. Make sure the current version number is on line 6.
diff --git a/sys/boot/alpha/netboot/Makefile b/sys/boot/alpha/netboot/Makefile
index ebdb351..1b14e62 100644
--- a/sys/boot/alpha/netboot/Makefile
+++ b/sys/boot/alpha/netboot/Makefile
@@ -4,67 +4,9 @@ BASE= netboot
PROG= ${BASE}
NOMAN=
NEWVERSWHAT= "SRM net boot" alpha
+LOAD_ADDRESS= ${PRIMARY_LOAD_ADDRESS}
-.PATH: ${.CURDIR}/../common
+CFLAGS+= -DLOADER_NET_SUPPORT
-# i386-specific bootstrap sources
-SRCS+= main.c conf.c dev_net.c
-
-# Always add MI sources
-.PATH: ${.CURDIR}/../../common
-.include <${.CURDIR}/../../common/Makefile.inc>
-CFLAGS+= -mno-fp-regs
-CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}
-CFLAGS+= -I${.CURDIR}/../../.. -I.
-CFLAGS+= -I${.OBJDIR}
-CFLAGS+= -DNETBOOT
-
-CLEANFILES+= vers.c vers.o gensetdefs.o gensetdefs setdef0.o setdef1.o \
- setdefs.h start.o
-CLEANFILES+= ${BASE} ${BASE}.sym ${BASE}.list
-
-CFLAGS+= -Wall
-
-CFLAGS+= -I${LIBSTANDDIR}
-CFLAGS+= -I${.CURDIR}/..
-CRT= start.o
-STRIP=
-BINDIR?= /boot
-
-all: ${BASE}
-
-vers.o: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version
- sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
- ${CC} -c vers.c
-
-${BASE}: ${BASE}.sym
- objcopy -O binary ${BASE}.sym ${BASE}
-
-${BASE}.nosym: ${BASE}.sym
- cp ${BASE}.sym ${BASE}.nosym
- strip ${BASE}.nosym
-
-${BASE}.sym: ${OBJS} ${LIBSTAND} ${LIBALPHA} ${CRT} vers.o setdef0.o setdef1.o
- ${LD} -o ${BASE}.sym -M -e start -N -Ttext ${PRIMARY_LOAD_ADDRESS} \
- ${CRT} setdef0.o ${OBJS} setdef1.o \
- vers.o ${LIBSTAND} ${LIBALPHA} ${LIBSTAND} >${.OBJDIR}/${BASE}.list
-
-start.o: ${.CURDIR}/../libalpha/start.S
- ${CC} -c ${CFLAGS} $<
-
-setdef0.o: setdefs.h
-
-setdef1.o: setdefs.h
-
-.include <bsd.prog.mk>
-
-setdefs.h: gensetdefs ${OBJS}
- @echo Generating linker sets
- @./gensetdefs ${OBJS} >setdefs.h
-
-gensetdefs: gensetdefs.o
- ${CC} -static gensetdefs.o -o $@
-
-gensetdefs.o: gensetdefs.c
- ${CC} -c $<
+.include <${.CURDIR}/../common/Makefile.common>
diff --git a/sys/boot/alpha/netboot/conf.c b/sys/boot/alpha/netboot/conf.c
deleted file mode 100644
index 354f9cd..0000000
--- a/sys/boot/alpha/netboot/conf.c
+++ /dev/null
@@ -1,91 +0,0 @@
-/*
- * $FreeBSD$
- * From: $NetBSD: conf.c,v 1.2 1997/03/22 09:03:29 thorpej Exp $
- */
-
-/*
- * Copyright (c) 1997
- * Matthias Drochner. 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 for the NetBSD Project
- * by Matthias Drochner.
- * 4. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
- */
-
-
-#include <stand.h>
-#include "libalpha/libalpha.h"
-#include "dev_net.h"
-
-/*
- * We could use linker sets for some or all of these, but
- * then we would have to control what ended up linked into
- * the bootstrap. So it's easier to conditionalise things
- * here.
- *
- * XXX rename these arrays to be consistent and less namespace-hostile
- */
-
-/* Exported for libstand */
-struct devsw *devsw[] = {
- &netdev,
- NULL
-};
-
-struct fs_ops *file_system[] = {
- &nfs_fsops,
- &zipfs_fsops,
- NULL
-};
-
-struct netif_driver *netif_drivers[] = {
- &srmnet,
- NULL,
-};
-
-/* Exported for alpha only */
-/*
- * Sort formats so that those that can detect based on arguments
- * rather than reading the file go first.
- */
-extern struct module_format alpha_elf;
-
-struct module_format *module_formats[] = {
- &alpha_elf,
- NULL
-};
-
-/*
- * Consoles
- *
- * We don't prototype these in libalpha.h because they require
- * data structures from bootstrap.h as well.
- */
-extern struct console promconsole;
-
-struct console *consoles[] = {
- &promconsole,
- NULL
-};
OpenPOWER on IntegriCloud