diff options
| author | mlelstv <mlelstv@NetBSD.org> | 2023-01-19 08:03:51 +0000 |
|---|---|---|
| committer | mlelstv <mlelstv@NetBSD.org> | 2023-01-19 08:03:51 +0000 |
| commit | dce8aac1f12ea99b86b84bf5c77236f5ab389fcd (patch) | |
| tree | 9ac657340ca886828b744cfc22c6b7ec46e8b0f9 /sys | |
| parent | d326f682618960a77da43e4da825e9523c97ab50 (diff) | |
Support remaining common boot options.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/arch/arm/arm32/arm32_machdep.c | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/sys/arch/arm/arm32/arm32_machdep.c b/sys/arch/arm/arm32/arm32_machdep.c index acca40e24d6..a81dbb9eb57 100644 --- a/sys/arch/arm/arm32/arm32_machdep.c +++ b/sys/arch/arm/arm32/arm32_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: arm32_machdep.c,v 1.144 2022/07/28 09:14:23 riastradh Exp $ */ +/* $NetBSD: arm32_machdep.c,v 1.145 2023/01/19 08:03:51 mlelstv Exp $ */ /* * Copyright (c) 1994-1998 Mark Brinicombe. @@ -42,7 +42,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: arm32_machdep.c,v 1.144 2022/07/28 09:14:23 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: arm32_machdep.c,v 1.145 2023/01/19 08:03:51 mlelstv Exp $"); #include "opt_arm_debug.h" #include "opt_arm_start.h" @@ -575,6 +575,26 @@ parse_mi_bootargs(char *args) || get_bootconf_option(args, "-a", BOOTOPT_TYPE_BOOLEAN, &integer)) if (integer) boothowto |= RB_ASKNAME; + if (get_bootconf_option(args, "userconf", BOOTOPT_TYPE_BOOLEAN, &integer) + || get_bootconf_option(args, "-c", BOOTOPT_TYPE_BOOLEAN, &integer)) + if (integer) + boothowto |= RB_USERCONF; + if (get_bootconf_option(args, "halt", BOOTOPT_TYPE_BOOLEAN, &integer) + || get_bootconf_option(args, "-b", BOOTOPT_TYPE_BOOLEAN, &integer)) + if (integer) + boothowto |= RB_HALT; + if (get_bootconf_option(args, "-1", BOOTOPT_TYPE_BOOLEAN, &integer)) + if (integer) + boothowto |= RB_MD1; + if (get_bootconf_option(args, "-2", BOOTOPT_TYPE_BOOLEAN, &integer)) + if (integer) + boothowto |= RB_MD2; + if (get_bootconf_option(args, "-3", BOOTOPT_TYPE_BOOLEAN, &integer)) + if (integer) + boothowto |= RB_MD3; + if (get_bootconf_option(args, "-4", BOOTOPT_TYPE_BOOLEAN, &integer)) + if (integer) + boothowto |= RB_MD4; /* if (get_bootconf_option(args, "nbuf", BOOTOPT_TYPE_INT, &integer)) bufpages = integer;*/ @@ -603,6 +623,10 @@ parse_mi_bootargs(char *args) || get_bootconf_option(args, "-x", BOOTOPT_TYPE_BOOLEAN, &integer)) if (integer) boothowto |= AB_DEBUG; + if (get_bootconf_option(args, "silent", BOOTOPT_TYPE_BOOLEAN, &integer) + || get_bootconf_option(args, "-z", BOOTOPT_TYPE_BOOLEAN, &integer)) + if (integer) + boothowto |= AB_SILENT; } #ifdef __HAVE_FAST_SOFTINTS |
