From: miod Date: Wed, 10 Aug 2022 12:20:05 +0000 (+0000) Subject: Pass the "good random" flag from the bootblocks to the kernel when applicable. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4b4220192dd9fe1a6144b269eae17bd145dc586f;p=openbsd Pass the "good random" flag from the bootblocks to the kernel when applicable. --- 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 #include -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';