summaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2020-10-08 18:02:05 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2020-10-08 18:02:05 +0000
commit22e6a670868487bc17e36270eb34f34074693b6a (patch)
tree0a99c12c4ce85aa3e08502213442350ba925894d /sys/amd64
parent7eb9f7558cfc528dd67db3bc8f82314870615903 (diff)
downloadsrc-test2-22e6a670868487bc17e36270eb34f34074693b6a.tar.gz
src-test2-22e6a670868487bc17e36270eb34f34074693b6a.zip
Notes
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/machdep.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index 9fd3272f23f7..7f6241af908e 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -1853,6 +1853,15 @@ hammer_time(u_int64_t modulep, u_int64_t physfree)
if (late_console)
cninit();
+ /*
+ * Dump the boot metadata. We have to wait for cninit() since console
+ * output is required. If it's grossly incorrect the kernel will never
+ * make it this far.
+ */
+ if ((boothowto & RB_VERBOSE) &&
+ getenv_is_true("debug.dump_modinfo_at_boot"))
+ preload_dump();
+
#ifdef DEV_ISA
#ifdef DEV_ATPIC
elcr_probe();