diff options
-rw-r--r-- | sys/arch/loongson/loongson/machdep.c | 5 | ||||
-rw-r--r-- | sys/arch/loongson/stand/boot/conf.c | 4 | ||||
-rw-r--r-- | sys/arch/loongson/stand/boot/exec.c | 4 |
3 files changed, 9 insertions, 4 deletions
diff --git a/sys/arch/loongson/loongson/machdep.c b/sys/arch/loongson/loongson/machdep.c index 536110279ad..153b243ad98 100644 --- a/sys/arch/loongson/loongson/machdep.c +++ b/sys/arch/loongson/loongson/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.99 2021/07/24 08:21:13 visa Exp $ */ +/* $OpenBSD: machdep.c,v 1.100 2022/08/10 12:20:05 miod Exp $ */ /* * Copyright (c) 2009, 2010, 2014 Miodrag Vallat. @@ -944,6 +944,9 @@ dobootopts(int argc) case 's': boothowto |= RB_SINGLE; break; + case 'g': + boothowto |= RB_GOODRANDOM; + break; default: pmon_printf("unrecognized option `%c'", *cp); break; diff --git a/sys/arch/loongson/stand/boot/conf.c b/sys/arch/loongson/stand/boot/conf.c index 7a3b39a27ea..7f4fe9e45d4 100644 --- a/sys/arch/loongson/stand/boot/conf.c +++ b/sys/arch/loongson/stand/boot/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.16 2020/12/09 18:10:19 krw Exp $ */ +/* $OpenBSD: conf.c,v 1.17 2022/08/10 12:20:05 miod Exp $ */ /* * Copyright (c) 1982, 1986, 1990, 1993 @@ -40,7 +40,7 @@ #include <lib/libsa/ufs2.h> #include <lib/libsa/cd9660.h> -const char version[] = "1.3"; +const char version[] = "1.4"; #if 0 /* network code not compiled in */ int debug = 0; #endif diff --git a/sys/arch/loongson/stand/boot/exec.c b/sys/arch/loongson/stand/boot/exec.c index c93a8e00153..d68d4d07add 100644 --- a/sys/arch/loongson/stand/boot/exec.c +++ b/sys/arch/loongson/stand/boot/exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec.c,v 1.4 2019/04/10 04:17:35 deraadt Exp $ */ +/* $OpenBSD: exec.c,v 1.5 2022/08/10 12:20:05 miod Exp $ */ /* * Copyright (c) 2010 Miodrag Vallat. @@ -58,6 +58,8 @@ run_loadfile(uint64_t *marks, int howto) *c++ = 'c'; if (howto & RB_KDB) *c++ = 'd'; + if (howto & RB_GOODRANDOM) + *c++ = 'g'; if (howto & RB_SINGLE) *c++ = 's'; *c = '\0'; |