File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,11 @@ static LOGGER: logger::DirectLogger = logger::DirectLogger::new();
157157
158158#[ no_mangle]
159159pub unsafe extern "C" fn kmain_multiboot2 ( multiboot_info_addr : usize ) -> ! {
160+ // Setup our (com0) logger
161+ log:: set_logger ( & LOGGER )
162+ . map ( |( ) | log:: set_max_level ( log:: LevelFilter :: Debug ) )
163+ . expect ( "Failed to set logger" ) ;
164+
160165 let boot_info = multiboot2:: early_init_multiboot2 (
161166 memory:: HostPhysAddr :: new ( multiboot_info_addr as u64 ) ,
162167 ) ;
@@ -167,11 +172,6 @@ unsafe fn kmain(mut boot_info: BootInfo) -> ! {
167172 // Setup the actual interrupt handlers
168173 interrupt:: idt:: init ( ) ;
169174
170- // Setup our (com0) logger
171- log:: set_logger ( & LOGGER )
172- . map ( |( ) | log:: set_max_level ( log:: LevelFilter :: Info ) )
173- . expect ( "Failed to set logger" ) ;
174-
175175 // Calibrate the global time source
176176 time:: init_global_time ( ) . expect ( "Failed to init global timesource" ) ;
177177
You can’t perform that action at this time.
0 commit comments