Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/stand/efiboot Hide the twiddle while loading efiboot plist
details: https://anonhg.NetBSD.org/src/rev/c396c75e5f5f
branches: trunk
changeset: 1006717:c396c75e5f5f
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Jan 25 10:53:13 2020 +0000
description:
Hide the twiddle while loading efiboot plist
diffstat:
sys/stand/efiboot/exec.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (44 lines):
diff -r 2a577626b0ad -r c396c75e5f5f sys/stand/efiboot/exec.c
--- a/sys/stand/efiboot/exec.c Sat Jan 25 10:09:46 2020 +0000
+++ b/sys/stand/efiboot/exec.c Sat Jan 25 10:53:13 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec.c,v 1.12 2019/12/18 21:46:03 riastradh Exp $ */
+/* $NetBSD: exec.c,v 1.13 2020/01/25 10:53:13 jmcneill Exp $ */
/*-
* Copyright (c) 2019 Jason R. Thorpe
@@ -34,6 +34,8 @@
#include <sys/reboot.h>
+extern char twiddle_toggle;
+
u_long load_offset = 0;
#define FDT_SPACE (4 * 1024 * 1024)
@@ -127,6 +129,7 @@
u_long plist_size = 0;
prop_dictionary_t plist = NULL, oplist = NULL;
bool load_quietly = false;
+ bool old_twiddle_toggle = twiddle_toggle;
const char *path = get_efibootplist_path();
if (path == NULL || strlen(path) == 0) {
@@ -136,6 +139,8 @@
load_quietly = true;
}
+ twiddle_toggle = load_quietly;
+
/*
* Fudge the size so we can ensure the resulting buffer
* is NUL-terminated for convenience.
@@ -157,6 +162,8 @@
out:
oplist = efibootplist;
+ twiddle_toggle = old_twiddle_toggle;
+
/*
* If we had a failure, create an empty one for
* convenience. But a failure should not clobber
Home |
Main Index |
Thread Index |
Old Index