Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jun 2021 03:29:10 GMT
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: c4b65e954f0f - main - i386/loader: Call tslog_init
Message-ID:  <202106210329.15L3TAC0076293@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=c4b65e954f0f4754941f5b37436231f611b76d67

commit c4b65e954f0f4754941f5b37436231f611b76d67
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2021-05-30 23:21:31 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2021-06-21 03:09:44 +0000

    i386/loader: Call tslog_init
    
    This allows the i386 loader to start recording timestamps.
    
    Reviewed by:    kevans
---
 stand/i386/loader/main.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/stand/i386/loader/main.c b/stand/i386/loader/main.c
index a595340d3a13..6b81ef411f7f 100644
--- a/stand/i386/loader/main.c
+++ b/stand/i386/loader/main.c
@@ -130,6 +130,12 @@ main(void)
 	}
 	setheap(heap_bottom, heap_top);
 
+	/*
+	 * Now that malloc is usable, allocate a buffer for tslog and start
+	 * logging timestamps during the boot process.
+	 */
+	tslog_init();
+
 	/*
 	 * detect ACPI for future reference. This may set console to comconsole
 	 * if we do have ACPI SPCR table.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106210329.15L3TAC0076293>