aboutsummaryrefslogtreecommitdiff
path: root/src/kernel.rs
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-08-18 20:37:09 -0700
committerChristian Cunningham <cc@localhost>2022-08-18 20:37:09 -0700
commit66ee8a34f3bcde31f9d5919f2e0e363ac11f4aca (patch)
tree7a63b38c6ea59d3058d0325d4d326a9b55390c32 /src/kernel.rs
parent6f1e6acb1a9775eef4b0d8879c102df86e207687 (diff)
Formatted printing to UART
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 { }
}