Skip to content

Commit

Permalink
Load keyboard module after memory module
Browse files Browse the repository at this point in the history
  • Loading branch information
vinc committed Oct 18, 2024
1 parent cd9a708 commit e40526f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,21 @@ use bootloader::BootInfo;
const KERNEL_SIZE: usize = 4 << 20; // 4 MB

pub fn init(boot_info: &'static BootInfo) {
use x86_64::instructions::read_rip;
let virt_addr = read_rip();

sys::vga::init();
sys::gdt::init();
sys::idt::init();
sys::pic::init(); // Enable interrupts
sys::serial::init();
sys::keyboard::init();
sys::time::init();

let v = option_env!("MOROS_VERSION").unwrap_or(env!("CARGO_PKG_VERSION"));
log!("SYS MOROS v{}", v);

sys::mem::init(boot_info);
sys::keyboard::init(); // Must not run before MEM
sys::acpi::init(); // Require MEM
sys::cpu::init();
sys::rng::init();
Expand Down

0 comments on commit e40526f

Please sign in to comment.