mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
wip
This commit is contained in:
@@ -34,9 +34,11 @@ pub extern fn rust_main(multiboot_address: usize) {
|
||||
use vga_buffer::{Writer, Color};
|
||||
|
||||
vga_buffer::clear_screen();
|
||||
let multiboot = unsafe{multiboot2::load(multiboot_address)};
|
||||
memory::init(multiboot);
|
||||
|
||||
if let Some(multiboot) = unsafe{multiboot2::load(multiboot_address)} {
|
||||
memory::init(multiboot);
|
||||
} else {
|
||||
println!("MULTIBOOT INOFORMATION STRUCTURE INVALID");
|
||||
}
|
||||
|
||||
let mut writer = Writer::new(Color::Blue, Color::LightGreen);
|
||||
writer.write_byte(b'H');
|
||||
|
||||
Reference in New Issue
Block a user