Init serial before the rest

So we could see output from all modules.
This commit is contained in:
Berkus Decker 2020-11-02 20:21:58 +02:00
parent 1fedc95d42
commit c378250aba
1 changed files with 4 additions and 3 deletions

View File

@ -111,15 +111,16 @@ fn init_uart_serial() {
/// `arch` crate is responsible for calling it.
#[inline]
pub fn kmain() -> ! {
#[cfg(not(feature = "noserial"))]
init_uart_serial();
init_exception_traps();
init_mmu();
#[cfg(test)]
test_main();
#[cfg(not(feature = "noserial"))]
init_uart_serial();
println!("Bye, hanging forever...");
endless_sleep()
}