aboutsummaryrefslogtreecommitdiff
path: root/src/kernel.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel.rs')
-rw-r--r--src/kernel.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/kernel.rs b/src/kernel.rs
index c25e148..e0cd343 100644
--- a/src/kernel.rs
+++ b/src/kernel.rs
@@ -27,6 +27,7 @@ mod print;
mod sync;
mod uart;
use crate::console::console;
+use crate::console::interface::Statistics;
use crate::mem::alloc::*;
/// # Initialization Code
@@ -47,11 +48,13 @@ unsafe fn kernel_init() -> ! {
///
/// TODO: Figure out what to do here
fn kernel_main() -> ! {
- println!("I should be able to print {} here!", 5);
+ println!("Initialized \x1b[92m{}\x1b[0m \x1b[93m{}\x1b[0m!", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION"));
+ println!("Testing out allocations!");
{
let a: Box<u8> = Box::new(u8::MAX);
let b: Box<u8> = Box::new(5);
println!("{:?} {:?}", a, b);
}
+ println!("Characters written to UART: {}", console().chars_written());
loop { }
}