From 9a21c47ff84eed1001acec3b492105cdc2d9220b Mon Sep 17 00:00:00 2001 From: natrixaeria Date: Fri, 25 Oct 2019 19:20:40 +0200 Subject: Create format writer --- kernel/src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'kernel/src/lib.rs') diff --git a/kernel/src/lib.rs b/kernel/src/lib.rs index 05b90ef..a27f0a7 100644 --- a/kernel/src/lib.rs +++ b/kernel/src/lib.rs @@ -4,8 +4,18 @@ 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 {} } -- cgit v1.2.3-70-g09d2