summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/gptboot/gptboot.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-07 21:36:06 +0000
committerphk <phk@FreeBSD.org>2002-10-07 21:36:06 +0000
commit881f1b527c4f798178c2788babc8b0faae40e1b5 (patch)
treeda55d98ee3373c49090ec99d0a43298cb9b76394 /sys/boot/i386/gptboot/gptboot.c
parent981ed72beb07b0fb850b85d0874740b8f80b564a (diff)
downloadFreeBSD-src-881f1b527c4f798178c2788babc8b0faae40e1b5.zip
FreeBSD-src-881f1b527c4f798178c2788babc8b0faae40e1b5.tar.gz
Conditionalize the number of sectors loaded by boot1.s on UFS1/UFS12.
Conditionalize the "XX bytes left" checks reference on UFS1/UFS12. Conditionally build the necessary 64bit math for boot2 if UFS12. Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/boot/i386/gptboot/gptboot.c')
-rw-r--r--sys/boot/i386/gptboot/gptboot.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/boot/i386/gptboot/gptboot.c b/sys/boot/i386/gptboot/gptboot.c
index cc858c8..fdc88ae 100644
--- a/sys/boot/i386/gptboot/gptboot.c
+++ b/sys/boot/i386/gptboot/gptboot.c
@@ -269,7 +269,11 @@ main(void)
/* Present the user with the boot2 prompt. */
for (;;) {
- printf(" \n>> FreeBSD/i386 BOOT\n"
+#ifdef UFS1_ONLY
+ printf(" \n>> FreeBSD/i386/UFS1 BOOT\n"
+#else
+ printf(" \n>> FreeBSD/i386/UFS[12] BOOT\n"
+#endif
"Default: %u:%s(%u,%c)%s\n"
"boot: ",
dsk.drive & DRV_MASK, dev_nm[dsk.type], dsk.unit,
OpenPOWER on IntegriCloud