aboutsummaryrefslogtreecommitdiff
path: root/sys/boot
diff options
context:
space:
mode:
authorYoshihiro Takahashi <nyan@FreeBSD.org>2000-04-23 09:33:31 +0000
committerYoshihiro Takahashi <nyan@FreeBSD.org>2000-04-23 09:33:31 +0000
commit41088a06e795bbb0aaaa83d0cbd4b932c6499500 (patch)
tree7c836dc6745bee3f4dd878a0b4e83c43d765616d /sys/boot
parenta1491bb13c6db359498fc50334b136d341f24297 (diff)
Notes
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/pc98/libpc98/Makefile5
-rw-r--r--sys/boot/pc98/loader/Makefile4
-rw-r--r--sys/boot/pc98/loader/main.c5
3 files changed, 11 insertions, 3 deletions
diff --git a/sys/boot/pc98/libpc98/Makefile b/sys/boot/pc98/libpc98/Makefile
index ce22e40fd7f0..8c2d1d977487 100644
--- a/sys/boot/pc98/libpc98/Makefile
+++ b/sys/boot/pc98/libpc98/Makefile
@@ -8,7 +8,7 @@ INTERNALSTATICLIB= true
SRCS= aout_freebsd.c biosdisk.c biosmem.c biospnp.c biospci.c \
bootinfo.c comconsole.c devicename.c elf_freebsd.c gatea20.c \
- i386_copy.c i386_module.c time.c vidconsole.c
+ i386_copy.c i386_module.c time.c vidconsole.c pxe.c pxetramp.s
.PATH: ${.CURDIR}/../../i386/libi386
CFLAGS+= -DPC98
@@ -22,6 +22,9 @@ CFLAGS+= -DCOMPORT=${BOOT_COMCONSOLE_PORT}
BOOT_COMCONSOLE_SPEED?= 9600
CFLAGS+= -DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
+# the location of libstand
+CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
+
# Make the disk code more talkative
#CFLAGS+= -DDISK_DEBUG
diff --git a/sys/boot/pc98/loader/Makefile b/sys/boot/pc98/loader/Makefile
index bb2dd8fcee63..a9a9455f1c27 100644
--- a/sys/boot/pc98/loader/Makefile
+++ b/sys/boot/pc98/loader/Makefile
@@ -12,7 +12,7 @@ BINDIR?= /boot
CFLAGS+= -DPC98
# architecture-specific loader code
-SRCS= main.c conf.c pxe.c
+SRCS= main.c conf.c
.PATH: ${.CURDIR}/../../i386/loader ${.CURDIR}/../../i386/libi386
# Enable PXE TFTP or NFS support, not both.
@@ -121,7 +121,7 @@ beforeinstall:
${BASE}.sym: ${OBJS} ${LIBPC98} ${LIBSTAND} ${LIBFICL} vers.o
${CC} ${LDFLAGS} -o ${.TARGET} ${BTXCRT} ${OBJS} vers.o \
- ${LIBFICL} ${LIBSTAND} ${LIBPC98} ${LIBSTAND}
+ ${LIBFICL} ${LIBPC98} ${LIBSTAND}
# If it's not there, don't consider it a target
.if exists(${.CURDIR}/../../../i386/include)
diff --git a/sys/boot/pc98/loader/main.c b/sys/boot/pc98/loader/main.c
index 3b58cf5d8c5f..7296604b25c1 100644
--- a/sys/boot/pc98/loader/main.c
+++ b/sys/boot/pc98/loader/main.c
@@ -234,6 +234,11 @@ COMMAND_SET(reboot, "reboot", "reboot the system", command_reboot);
static int
command_reboot(int argc, char *argv[])
{
+ int i;
+
+ for (i = 0; devsw[i] != NULL; ++i)
+ if (devsw[i]->dv_cleanup != NULL)
+ (devsw[i]->dv_cleanup)();
printf("Rebooting...\n");
delay(1000000);