Skip to content

Commit 7e9f846

Browse files
committed
arch: Initialize CPU features after initial logging is enabled
Signed-off-by: Dennis Bonke <[email protected]>
1 parent 5ce6160 commit 7e9f846

File tree

1 file changed

+3
-3
lines changed
  • src/aero_kernel/src/arch/x86_64

1 file changed

+3
-3
lines changed

src/aero_kernel/src/arch/x86_64/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,16 @@ extern "C" fn x86_64_aero_main(boot_info: &'static StivaleStruct) -> ! {
146146
.unwrap()
147147
});
148148

149-
// Initialize the CPU specific features.
150-
init_cpu();
151-
152149
// We initialize the COM ports before doing anything else.
153150
//
154151
// This will help printing panics and logs before or when the debug renderer
155152
// is initialized and if serial output is avaliable.
156153
drivers::uart_16550::init();
157154
logger::init();
158155

156+
// Initialize the CPU specific features.
157+
init_cpu();
158+
159159
// Parse the kernel command line.
160160
let command_line: &'static _ = boot_info.command_line().map_or("", |cmd| unsafe {
161161
let cmdline = PhysAddr::new(cmd.command_line).as_hhdm_virt();

0 commit comments

Comments
 (0)