summaryrefslogtreecommitdiff
path: root/sys/arch/amiga/stand
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-08-15 13:00:38 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-08-15 13:00:38 +0000
commit4928f349a15c66a48b18991110ce6fccd6bfa6c1 (patch)
treef89fc131051c9428480721fe051080e29dbb71a2 /sys/arch/amiga/stand
parentb3dba352a0b5c8cd5786b0982c5b2c359e4a005b (diff)
Change old -c flag to -C, support -c for BOOT_CONFIG
Diffstat (limited to 'sys/arch/amiga/stand')
-rw-r--r--sys/arch/amiga/stand/loadbsd/loadbsd.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/sys/arch/amiga/stand/loadbsd/loadbsd.c b/sys/arch/amiga/stand/loadbsd/loadbsd.c
index 67b62196491..5669b1f0bfb 100644
--- a/sys/arch/amiga/stand/loadbsd/loadbsd.c
+++ b/sys/arch/amiga/stand/loadbsd/loadbsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: loadbsd.c,v 1.5 1996/05/07 10:14:34 niklas Exp $ */
+/* $OpenBSD: loadbsd.c,v 1.6 1996/08/15 13:00:37 niklas Exp $ */
/* $NetBSD: loadbsd.c,v 1.19 1996/05/04 01:23:37 mhitch Exp $ */
/*
@@ -108,9 +108,12 @@ void warnx __P((const char *, ...));
* and startup interface version checked in test mode.
* Add -s flag for compatibility to bootblock loader.
* 05/02/96 - Add a maximum startup interface version level
- & to allow future kernel compatibility.
+ * to allow future kernel compatibility.
+ * 2.13.1 OpenBSD branch: changed old -c to -C so new -c can be the
+ * architecture-independent bootflag for user-controlled
+ * startup configuration.
*/
-static const char _version[] = "$VER: LoadBSD 2.13 (2.5.96)";
+static const char _version[] = "$VER: LoadBSD 2.13.1 (OpenBSD 15.8.96)";
/*
* Kernel startup interface version
@@ -194,7 +197,7 @@ main(argc, argv)
if ((ExpansionBase=(void *)OpenLibrary(EXPANSIONNAME, 0)) == NULL)
err(20, "can't open expansion library");
- while ((ch = getopt(argc, argv, "aAbc:DhI:km:n:ptsSVZ")) != EOF) {
+ while ((ch = getopt(argc, argv, "aAbcC:DhI:km:n:ptsSVZ")) != EOF) {
switch (ch) {
case 'k':
k_flag = 1;
@@ -206,6 +209,9 @@ main(argc, argv)
case 'b':
boothowto |= RB_ASKNAME;
break;
+ case 'c':
+ boothowto |= RB_CONFIG;
+ break;
case 'p':
p_flag = 1;
break;
@@ -228,7 +234,7 @@ main(argc, argv)
case 'D':
boothowto |= RB_KDB;
break;
- case 'c':
+ case 'C':
cpuid = atoi(optarg) << 16;
break;
case 'A':
@@ -687,13 +693,14 @@ verbose_usage()
NAME
\t%s - loads NetBSD from amiga dos.
SYNOPSIS
-\t%s [-abhkpstADSVZ] [-c machine] [-m mem] [-n flags] [-I sync-inhibit] kernel
+\t%s [-abchkpstADSVZ] [-C machine] [-m mem] [-n flags] [-I sync-inhibit] kernel
OPTIONS
\t-a Boot up to multiuser mode.
\t-A Use AGA display mode, if available.
\t-b Ask for which root device.
\t Its possible to have multiple roots and choose between them.
-\t-c Set machine type. [e.g 3000]
+\t-c Enter user-controlled startup-configuration mode.
+\t-C Set machine type. [e.g 3000]
\t-D Enter debugger
\t-h This help message.
\t-I Inhibit sync negotiation. Option value is bit-encoded targets.