Pass address of multiboot info structure to rust_main

master
Philipp Oppermann 8 years ago
parent 08a4e795a4
commit 28ce5310c8

@ -5,6 +5,7 @@ section .text
bits 32
start:
mov esp, stack_top
mov edi, ebx ; move Multiboot info pointer to edi
call check_multiboot
call check_cpuid

@ -12,7 +12,7 @@ extern crate spin;
mod vga_buffer;
#[no_mangle]
pub extern fn rust_main() {
pub extern fn rust_main(multiboot_information_address: usize) {
vga_buffer::clear_screen();
println!("Hello World{}", "!");

Loading…
Cancel
Save