diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2022-08-10 12:20:06 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2022-08-10 12:20:06 +0000 |
commit | b6f84051e00e9cc7db7fe71b34c43eb4f46aba37 (patch) | |
tree | 57a7ca75362e73f5ae716d6a4eca8337c1917651 /sys/arch/loongson/stand | |
parent | 852c31761db5f882dcc38ed659309b6e188bf484 (diff) |
Pass the "good random" flag from the bootblocks to the kernel when applicable.
Diffstat (limited to 'sys/arch/loongson/stand')
-rw-r--r-- | sys/arch/loongson/stand/boot/conf.c | 4 | ||||
-rw-r--r-- | sys/arch/loongson/stand/boot/exec.c | 4 |
2 files changed, 5 insertions, 3 deletions
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'; |