Skip to content
Snippets Groups Projects
Commit 156c66ad authored by Eemeli Lehtonen's avatar Eemeli Lehtonen
Browse files

separate kernel lib and binary

parent c95e1b75
No related branches found
No related tags found
No related merge requests found
#![no_std]
#![feature(abi_x86_interrupt)]
pub mod framebuffer;
pub mod idt;
pub mod instructions;
#[panic_handler]
fn panic_handler(_: &core::panic::PanicInfo) -> ! {
instructions::hlt();
}
pub fn kernel_main(boot_info: &'static mut bootloader_api::BootInfo) -> ! {
framebuffer::init(boot_info);
framebuffer::clear();
framebuffer::print_char(b'H');
idt::init();
instructions::hlt();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment