From a6b91c56f29257c3e54f0bfb2d99bf07262cb184 Mon Sep 17 00:00:00 2001 From: Tianhao Wang Date: Thu, 1 Feb 2024 23:44:51 +0100 Subject: PS/2 Keyboard controller: baseline --- src/io.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/io.rs') 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 = Mutex::new(CGAScreen::new()); + pub static ref KBCTL_GLOBAL: Mutex = Mutex::new(KeyboardController::new()); } #[macro_export] -- cgit v1.2.3-70-g09d2