Files
os/kernel/src/arch/x86_64/mod.rs
T
2024-01-28 19:11:27 -05:00

24 lines
495 B
Rust

pub mod framebuffer;
pub mod gdt;
pub mod interrupts;
pub mod qemu;
bootloader_api::entry_point!(_start);
fn _start(boot_info: &'static mut bootloader_api::BootInfo) -> ! {
gdt::init();
interrupts::init();
if let Some(framebuffer) = boot_info.framebuffer.as_mut() {
framebuffer::draw_test(framebuffer);
}
// not working on this anymore for now
// main(null_mut());
loop {}
}
pub fn hlt_loop() -> ! {
loop {
x86_64::instructions::hlt();
}
}