aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2021-05-30 23:22:28 +0000
committerColin Percival <cperciva@FreeBSD.org>2021-06-21 03:09:46 +0000
commit537a44bf281559d304850b5e28b6f8b8e44fd593 (patch)
tree3aeb9d7c4ed50722268f56e77cab4c5f1cf148e7
parentf49381ccb6bc8a5733f1aa505e716eddae299986 (diff)
downloadsrc-537a44bf281559d304850b5e28b6f8b8e44fd593.tar.gz
src-537a44bf281559d304850b5e28b6f8b8e44fd593.zip
stand/common command_boot: Pass tslog to kernel
Pass the recorded tslog buffer to the kernel as a "preloaded module". Reviewed by: kevans
-rw-r--r--stand/common/boot.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/stand/common/boot.c b/stand/common/boot.c
index 2103f6dc240c..5ce6fe8a6760 100644
--- a/stand/common/boot.c
+++ b/stand/common/boot.c
@@ -113,6 +113,9 @@ command_boot(int argc, char *argv[])
#endif
#endif
+ /* Pass the tslog buffer to the kernel as a preloaded module. */
+ tslog_publish();
+
/* Call the exec handler from the loader matching the kernel */
file_formats[fp->f_loader]->l_exec(fp);
return(CMD_ERROR);