aboutsummaryrefslogtreecommitdiff
path: root/src/io.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/io.rs')
-rw-r--r--src/io.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/io.rs b/src/io.rs
index 417fc1d..664fda2 100644
--- a/src/io.rs
+++ b/src/io.rs
@@ -1,11 +1,12 @@
use crate::machine::cgascr::CGAScreen;
+use crate::machine::keyctrl::KeyboardController;
use core::fmt;
use lazy_static::lazy_static;
use spin::Mutex;
// TODO I want my own locking primitive for practice, instead of stock spin lock
lazy_static! {
- // TODO perhaps remove the 'a lifetime from the struc defs
pub static ref CGASCREEN_GLOBAL: Mutex<CGAScreen> = Mutex::new(CGAScreen::new());
+ pub static ref KBCTL_GLOBAL: Mutex<KeyboardController> = Mutex::new(KeyboardController::new());
}
#[macro_export]