mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
24 lines
493 B
Rust
24 lines
493 B
Rust
#![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(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{}}
|