2019-07-09 09:42:41 -07:00
|
|
|
#![no_std]
|
|
|
|
#![no_main]
|
|
|
|
|
2019-07-10 02:25:12 -07:00
|
|
|
mod vga_buffer;
|
|
|
|
|
2019-07-09 09:42:41 -07:00
|
|
|
use core::panic::PanicInfo;
|
|
|
|
|
|
|
|
#[panic_handler]
|
|
|
|
fn panic(_info: &PanicInfo) -> !{
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[no_mangle]
|
|
|
|
pub extern "C" fn _start() -> ! {
|
2019-07-10 01:37:58 -07:00
|
|
|
|
2019-07-10 23:39:12 -07:00
|
|
|
use core::fmt::Write;
|
|
|
|
vga_buffer::WRITER.lock().write_str("Gamarjoba, munde").unwrap();
|
|
|
|
write!(vga_buffer::WRITER.lock(), ", hella {} bro", 2).unwrap();
|
2019-07-10 01:37:58 -07:00
|
|
|
|
2019-07-09 09:42:41 -07:00
|
|
|
loop {}
|
2019-07-09 02:02:08 -07:00
|
|
|
}
|
2019-07-10 02:25:12 -07:00
|
|
|
|