#![feature(compiler_builtins_lib)] #![no_std] #![no_main] extern crate compiler_builtins; mod vga_text; use core::fmt::Write; #[no_mangle] pub extern "C" fn _start() -> ! { let mut stdout = vga_text::OStream::new(); stdout.clear(); write!(&mut stdout, "hello world!"); loop {} } #[panic_handler] #[no_mangle] pub extern "C" fn panic_handler(_info: &core::panic::PanicInfo) -> ! { loop {} }