amd64: Call clock_init() after finishidentcpu()
As in commitc3d830cf7c
, we should finalize CPU identification before probing the TSC frequency. Fixes:84369dd523
("x86: Probe the TSC frequency earlier") Reported by: khng
This commit is contained in:
parent
61d83041ab
commit
f7a6dccf42
@ -1457,12 +1457,6 @@ hammer_time(u_int64_t modulep, u_int64_t physfree)
|
||||
r_idt.rd_base = (long) idt;
|
||||
lidt(&r_idt);
|
||||
|
||||
/*
|
||||
* Initialize the clock before the console so that console
|
||||
* initialization can use DELAY().
|
||||
*/
|
||||
clock_init();
|
||||
|
||||
/*
|
||||
* Use vt(4) by default for UEFI boot (during the sc(4)/vt(4)
|
||||
* transition).
|
||||
@ -1490,6 +1484,13 @@ hammer_time(u_int64_t modulep, u_int64_t physfree)
|
||||
&x86_rngds_mitg_enable);
|
||||
|
||||
finishidentcpu(); /* Final stage of CPU initialization */
|
||||
|
||||
/*
|
||||
* Initialize the clock before the console so that console
|
||||
* initialization can use DELAY().
|
||||
*/
|
||||
clock_init();
|
||||
|
||||
initializecpu(); /* Initialize CPU registers */
|
||||
|
||||
amd64_bsp_ist_init(pc);
|
||||
|
Loading…
Reference in New Issue
Block a user