diff options
author | Mark Johnston <markj@FreeBSD.org> | 2022-03-01 14:00:05 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2022-03-01 14:38:45 +0000 |
commit | c3d830cf7c71614d21f57c24039de219e4a90538 (patch) | |
tree | cb7a3112845454f5a3160b1693a7186f9b040ac3 /sys/i386/i386/machdep.c | |
parent | 89ae8eb74e87ac19aa2d7abe4ba16bcccd32bb9f (diff) | |
download | src-c3d830cf7c71614d21f57c24039de219e4a90538.tar.gz src-c3d830cf7c71614d21f57c24039de219e4a90538.zip |
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
Diffstat (limited to 'sys/i386/i386/machdep.c')
-rw-r--r-- | sys/i386/i386/machdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |