Pass bootinfo to kernel entry point

This commit is contained in:
Yash Karandikar 2021-09-19 13:09:07 -05:00
parent 5d43df22db
commit fd1b604a90
Signed by: karx
GPG key ID: A794DA2529474BA5

View file

@ -11,6 +11,7 @@ mod interrupts;
mod shell;
mod vga_buffer;
use core::panic::PanicInfo;
use bootloader::BootInfo;
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
@ -24,7 +25,7 @@ fn init() {
}
#[no_mangle]
pub extern "C" fn _start() {
pub extern "C" fn _start(boot_info: &'static BootInfo) {
use crate::vga_buffer::{change_color, Color};
init();