Pass multiboot pointer as argument to rust_main

This commit is contained in:
Philipp Oppermann
2015-11-12 17:52:22 +01:00
parent d07530d660
commit 73aa41e25e
4 changed files with 24 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ extern crate spin;
mod vga_buffer;
#[no_mangle]
pub extern fn rust_main() {
pub extern fn rust_main(multiboot_information_address: usize) {
// ATTENTION: we have a very small stack and no guard page
vga_buffer::clear_screen();
println!("Hello World{}", "!");