From b6f84051e00e9cc7db7fe71b34c43eb4f46aba37 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 10 Aug 2022 12:20:06 +0000 Subject: Pass the "good random" flag from the bootblocks to the kernel when applicable. --- sys/arch/loongson/stand/boot/conf.c | 4 ++-- sys/arch/loongson/stand/boot/exec.c | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/arch/loongson/stand') 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'; -- cgit v1.2.3