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
This commit is contained in:
Mark Johnston 2022-03-01 09:00:05 -05:00
parent 89ae8eb74e
commit c3d830cf7c

View File

@ -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 */