summaryrefslogtreecommitdiff
path: root/kernel/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/src/lib.rs')
-rw-r--r--kernel/src/lib.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/kernel/src/lib.rs b/kernel/src/lib.rs
index a27f0a7..48cb93d 100644
--- a/kernel/src/lib.rs
+++ b/kernel/src/lib.rs
@@ -1,6 +1,6 @@
+#![no_main]
#![feature(compiler_builtins_lib)]
#![no_std]
-#![no_main]
extern crate compiler_builtins;
@@ -11,11 +11,16 @@ 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!");
+ core::iter::successors(Some(0), |n| Some(n + 1))
+ .for_each(|n|
+ write!(&mut stdout, "hello world {}!", n).unwrap()
+ );
+
loop {}
}