Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Mar 2022 14:39:54 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: c3d830cf7c71 - main - i386: Call clock_init() after finishidentcpu()
Message-ID:  <202203011439.221EdsEw038477@gitrepo.freebsd.org>

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

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

commit c3d830cf7c71614d21f57c24039de219e4a90538
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-03-01 14:00:05 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-03-01 14:38:45 +0000

    i386: Call clock_init() after finishidentcpu()
    
    In a subsequent commit clock_init() will attempt to determine the TSC
    frequency, and this requires that CPU identification is finalized.
    
    MFC after:      2 weeks
    Sponsored by:   The FreeBSD Foundation
---
 sys/i386/i386/machdep.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index 1e62b5f909b2..ee6752861c9e 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -1484,13 +1484,14 @@ init386(int first)
 	r_idt.rd_base = (int) idt;
 	lidt(&r_idt);
 
+	finishidentcpu();	/* Final stage of CPU initialization */
+
 	/*
 	 * Initialize the clock before the console so that console
 	 * initialization can use DELAY().
 	 */
 	clock_init();
 
-	finishidentcpu();	/* Final stage of CPU initialization */
 	i386_setidt2();
 	pmap_set_nx();
 	initializecpu();	/* Initialize CPU registers */



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