diff options
| author | Tianhao Wang <wth@riseup.net> | 2024-02-01 23:44:51 +0100 |
|---|---|---|
| committer | Tianhao Wang <shrik3@mailbox.org> | 2024-06-11 15:13:38 +0200 |
| commit | a6b91c56f29257c3e54f0bfb2d99bf07262cb184 (patch) | |
| tree | 13c093a1581d9a4c8c1ff34fe35c2b40c21f05b4 /src/io.rs | |
| parent | f857bd1d4f12316bd3434192d41c2489407c11a4 (diff) | |
PS/2 Keyboard controller: baseline
Diffstat (limited to 'src/io.rs')
| -rw-r--r-- | src/io.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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] |
