Add a global interface

This commit is contained in:
Philipp Oppermann
2019-01-25 13:21:39 +01:00
parent 3574958d5f
commit c1e3fa57c6
4 changed files with 41 additions and 14 deletions

View File

@@ -7,7 +7,15 @@ mod vga_buffer;
#[no_mangle]
pub extern "C" fn _start() -> ! {
vga_buffer::print_something();
use core::fmt::Write;
vga_buffer::WRITER.lock().write_str("Hello again").unwrap();
write!(
vga_buffer::WRITER.lock(),
", some numbers: {} {}",
42,
1.337
)
.unwrap();
loop {}
}