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

separate kernel lib and binary

parent cbbe3e18
No related branches found
No related tags found
No related merge requests found
const CONFIG: bootloader_api::BootloaderConfig = {
let mut config = bootloader_api::BootloaderConfig::new_default();
config.kernel_stack_size = 4096 * 4; // 16KiB
config
};
bootloader_api::entry_point!(super::kernel_main, config = &CONFIG);
#![no_std]
#![no_main]
#![feature(abi_x86_interrupt)]
pub mod cfg;
pub mod framebuffer;
pub mod idt;
pub mod instructions;
const CONFIG: bootloader_api::BootloaderConfig = {
let mut config = bootloader_api::BootloaderConfig::new_default();
config.kernel_stack_size = 4096 * 4; // 16KiB
config
};
#[panic_handler]
fn panic_handler(_: &core::panic::PanicInfo) -> ! {
instructions::hlt();
}
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();
}
bootloader_api::entry_point!(hyperion_kernel::kernel_main, config = &CONFIG);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment