You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
457 B
24 lines
457 B
#![feature(lang_items)]
|
|
#![feature(const_fn)]
|
|
#![feature(const_unique_new)]
|
|
#![feature(unique)]
|
|
#![no_std]
|
|
|
|
extern crate rlibc;
|
|
extern crate volatile;
|
|
extern crate spin;
|
|
|
|
#[macro_use]
|
|
mod vga_buffer;
|
|
|
|
#[no_mangle]
|
|
pub extern fn rust_main() {
|
|
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{}}
|