summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorguido <guido@FreeBSD.org>2001-12-10 20:02:22 +0000
committerguido <guido@FreeBSD.org>2001-12-10 20:02:22 +0000
commitd779575f7846876b380fa2aad5649f2147253f95 (patch)
tree2c02555b14b96857d5aafe414d930838b85fc62f /sys/boot
parent898745463bbc3e735f3319dc79dd135b505f3b35 (diff)
downloadFreeBSD-src-d779575f7846876b380fa2aad5649f2147253f95.zip
FreeBSD-src-d779575f7846876b380fa2aad5649f2147253f95.tar.gz
Add new boot flag to i386 boot: -p.
This flag adds a pausing utility. When ran with -p, during the kernel probing phase, the kernel will pause after each line of output. This pausing can be ended with the '.' key, and is automatically suspended when entering ddb. This flag comes in handy at systems without a serial port that either hang during booting or reser. Reviewed by: (partly by jlemon) MFC after: 1 week
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/i386/libi386/bootinfo.c3
-rw-r--r--sys/boot/i386/libi386/bootinfo32.c3
-rw-r--r--sys/boot/i386/libi386/bootinfo64.c3
3 files changed, 9 insertions, 0 deletions
diff --git a/sys/boot/i386/libi386/bootinfo.c b/sys/boot/i386/libi386/bootinfo.c
index 8e5c752..1c6b1d2 100644
--- a/sys/boot/i386/libi386/bootinfo.c
+++ b/sys/boot/i386/libi386/bootinfo.c
@@ -100,6 +100,9 @@ bi_getboothowto(char *kargs)
case 'h':
howto |= RB_SERIAL;
break;
+ case 'p':
+ howto |= RB_PAUSE;
+ break;
case 'r':
howto |= RB_DFLTROOT;
break;
diff --git a/sys/boot/i386/libi386/bootinfo32.c b/sys/boot/i386/libi386/bootinfo32.c
index 8e5c752..1c6b1d2 100644
--- a/sys/boot/i386/libi386/bootinfo32.c
+++ b/sys/boot/i386/libi386/bootinfo32.c
@@ -100,6 +100,9 @@ bi_getboothowto(char *kargs)
case 'h':
howto |= RB_SERIAL;
break;
+ case 'p':
+ howto |= RB_PAUSE;
+ break;
case 'r':
howto |= RB_DFLTROOT;
break;
diff --git a/sys/boot/i386/libi386/bootinfo64.c b/sys/boot/i386/libi386/bootinfo64.c
index 8e5c752..1c6b1d2 100644
--- a/sys/boot/i386/libi386/bootinfo64.c
+++ b/sys/boot/i386/libi386/bootinfo64.c
@@ -100,6 +100,9 @@ bi_getboothowto(char *kargs)
case 'h':
howto |= RB_SERIAL;
break;
+ case 'p':
+ howto |= RB_PAUSE;
+ break;
case 'r':
howto |= RB_DFLTROOT;
break;
OpenPOWER on IntegriCloud