aboutsummaryrefslogtreecommitdiff
path: root/src/kernel.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel.rs')
-rw-r--r--src/kernel.rs16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/kernel.rs b/src/kernel.rs
index a194b14..56f53c1 100644
--- a/src/kernel.rs
+++ b/src/kernel.rs
@@ -9,20 +9,22 @@
#![no_main]
#![no_std]
+mod console;
mod cpu;
mod panic_wait;
+mod print;
+mod sync;
mod uart;
-use crate::uart::*;
+use crate::console::console;
/// Initialization Code
unsafe fn kernel_init() -> ! {
- uart_init();
-
- kernel_main()
+ console().init().unwrap();
+ kernel_main()
}
+/// Post init
fn kernel_main() -> ! {
- write_char(b'a');
- loop {
- }
+ println!("I should be able to print {} here!", 5);
+ loop { }
}