Skip to content

Commit 8c012c6

Browse files
authored
Merge pull request #1908 from hermit-os/x86_64-log-time
fix(x86_64): detect frequency before printing time
2 parents 04c47db + 80b687d commit 8c012c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/arch/x86_64/kernel/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ pub fn boot_processor_init() {
109109
crate::mm::print_information();
110110
CoreLocal::get().add_irq_counter();
111111
env::init();
112-
crate::logging::KERNEL_LOGGER.set_time(true);
113112
gdt::add_current_core();
114113
interrupts::load_idt();
115114
pic::init();
116115

117116
processor::detect_frequency();
117+
crate::logging::KERNEL_LOGGER.set_time(true);
118118
processor::print_information();
119119
debug!("Cr0 = {:?}", Cr0::read());
120120
debug!("Cr4 = {:?}", Cr4::read());

0 commit comments

Comments
 (0)