From c378250aba478c079071d072210105bc42753d26 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Mon, 2 Nov 2020 20:21:58 +0200 Subject: [PATCH] Init serial before the rest So we could see output from all modules. --- nucleus/src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nucleus/src/main.rs b/nucleus/src/main.rs index 36876f9..7f7e915 100644 --- a/nucleus/src/main.rs +++ b/nucleus/src/main.rs @@ -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() }