Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/aarch64/aarch64 Implement parse_mi_bootargs for aar...



details:   https://anonhg.NetBSD.org/src/rev/a22e072c3ec9
branches:  trunk
changeset: 445518:a22e072c3ec9
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Oct 31 13:42:24 2018 +0000

description:
Implement parse_mi_bootargs for aarch64

diffstat:

 sys/arch/aarch64/aarch64/aarch64_machdep.c |  19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r 31ca65687229 -r a22e072c3ec9 sys/arch/aarch64/aarch64/aarch64_machdep.c
--- a/sys/arch/aarch64/aarch64/aarch64_machdep.c        Wed Oct 31 13:37:35 2018 +0000
+++ b/sys/arch/aarch64/aarch64/aarch64_machdep.c        Wed Oct 31 13:42:24 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aarch64_machdep.c,v 1.16 2018/10/20 06:18:18 ryo Exp $ */
+/* $NetBSD: aarch64_machdep.c,v 1.17 2018/10/31 13:42:24 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: aarch64_machdep.c,v 1.16 2018/10/20 06:18:18 ryo Exp $");
+__KERNEL_RCSID(1, "$NetBSD: aarch64_machdep.c,v 1.17 2018/10/31 13:42:24 jmcneill Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_ddb.h"
@@ -45,6 +45,7 @@
 #include <sys/module.h>
 #include <sys/msgbuf.h>
 #include <sys/sysctl.h>
+#include <sys/reboot.h>
 
 #include <dev/mm.h>
 
@@ -501,6 +502,20 @@
 void
 parse_mi_bootargs(char *args)
 {
+       int val;
+
+       if (get_bootconf_option(args, "-s", BOOTOPT_TYPE_BOOLEAN, &val) && val)
+               boothowto |= RB_SINGLE;
+       if (get_bootconf_option(args, "-d", BOOTOPT_TYPE_BOOLEAN, &val) && val)
+               boothowto |= RB_KDB;
+       if (get_bootconf_option(args, "-a", BOOTOPT_TYPE_BOOLEAN, &val) && val)
+               boothowto |= RB_ASKNAME;
+       if (get_bootconf_option(args, "-q", BOOTOPT_TYPE_BOOLEAN, &val) && val)
+               boothowto |= AB_QUIET;
+       if (get_bootconf_option(args, "-v", BOOTOPT_TYPE_BOOLEAN, &val) && val)
+               boothowto |= AB_VERBOSE;
+       if (get_bootconf_option(args, "-x", BOOTOPT_TYPE_BOOLEAN, &val) && val)
+               boothowto |= AB_DEBUG;
 }
 
 void



Home | Main Index | Thread Index | Old Index