#![feature(lang_items)] #![feature(const_fn)] #![feature(const_unique_new)] #![feature(unique)] #![no_std] extern crate rlibc; extern crate volatile; extern crate spin; extern crate multiboot2; #[macro_use] mod vga_buffer; #[no_mangle] pub extern fn rust_main(multiboot_information_address: usize) { vga_buffer::clear_screen(); println!("Hello World{}", "!"); loop{} } #[lang = "eh_personality"] extern fn eh_personality() {} #[lang = "panic_fmt"] #[no_mangle] pub extern fn panic_fmt() -> ! {loop{}}