From a10579346c63450f86f11a474cd7eeeac0315c3f Mon Sep 17 00:00:00 2001 From: Julien CLEMENT Date: Tue, 20 Dec 2022 20:59:02 +0100 Subject: [PATCH] put atapi::init in async executor Signed-off-by: Julien CLEMENT --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 0c74136..a8d3b5a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,7 +43,6 @@ pub fn init(boot_info: &BootInformation) { memory::init(boot_info); memory::gdt::init_gdt(); interrupts::init_idt(); - drivers::atapi::init(); vga::change_color(ColorCode::new(Color::LightGreen, Color::Black)); } @@ -56,6 +55,7 @@ pub extern "C" fn julios_main(multiboot_info_addr: usize) -> ! { serial_println!("Hello serial"); let mut executor = Executor::new(); + executor.spawn(Task::new(drivers::atapi::init())); executor.spawn(Task::new(keyboard::print_keypresses())); executor.spawn(Task::new(fs::iso::init_prim_vol_desc())); executor.run();