Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/i386 xen_parse_cmdline:
details: https://anonhg.NetBSD.org/src/rev/0de397a64375
branches: trunk
changeset: 583752:0de397a64375
user: yamt <yamt%NetBSD.org@localhost>
date: Sun Aug 21 13:15:43 2005 +0000
description:
xen_parse_cmdline:
- use BOOT_FLAG macro.
- allow RB_KDB because it works fine, depending on type of console.
diffstat:
sys/arch/xen/i386/xen_machdep.c | 19 ++++---------------
1 files changed, 4 insertions(+), 15 deletions(-)
diffs (45 lines):
diff -r 3ae69c966879 -r 0de397a64375 sys/arch/xen/i386/xen_machdep.c
--- a/sys/arch/xen/i386/xen_machdep.c Sun Aug 21 13:14:54 2005 +0000
+++ b/sys/arch/xen/i386/xen_machdep.c Sun Aug 21 13:15:43 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xen_machdep.c,v 1.11 2005/08/20 19:20:54 bouyer Exp $ */
+/* $NetBSD: xen_machdep.c,v 1.12 2005/08/21 13:15:43 yamt Exp $ */
/*
*
@@ -33,12 +33,13 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xen_machdep.c,v 1.11 2005/08/20 19:20:54 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xen_machdep.c,v 1.12 2005/08/21 13:15:43 yamt Exp $");
#include "opt_xen.h"
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/boot_flag.h>
#include <sys/mount.h>
#include <sys/reboot.h>
@@ -220,19 +221,7 @@
if (*opt == '-') {
opt++;
while(*opt != '\0') {
- switch(*opt) {
- case 'a':
- boothowto |= RB_ASKNAME;
- break;
-#ifdef notyet /* XXX cause early panic, before console is setup */
- case 'd':
- boothowto |= RB_KDB;
- break;
-#endif
- case 's':
- boothowto |= RB_SINGLE;
- break;
- }
+ BOOT_FLAG(*opt, boothowto);
opt++;
}
}
Home |
Main Index |
Thread Index |
Old Index