Skip to content

Commit

Permalink
Merge branch 'post-08' into post-09
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-opp committed May 30, 2024
2 parents c250dd0 + aa13e03 commit 2870ac4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spin = "0.5.2"
x86_64 = "0.14.2"
uart_16550 = "0.2.0"
pic8259 = "0.10.1"
pc-keyboard = "0.5.0"
pc-keyboard = "0.7.0"

[dependencies.lazy_static]
version = "1.0"
Expand Down
9 changes: 6 additions & 3 deletions src/interrupts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,12 @@ extern "x86-interrupt" fn keyboard_interrupt_handler(_stack_frame: InterruptStac
use x86_64::instructions::port::Port;

lazy_static! {
static ref KEYBOARD: Mutex<Keyboard<layouts::Us104Key, ScancodeSet1>> = Mutex::new(
Keyboard::new(layouts::Us104Key, ScancodeSet1, HandleControl::Ignore)
);
static ref KEYBOARD: Mutex<Keyboard<layouts::Us104Key, ScancodeSet1>> =
Mutex::new(Keyboard::new(
ScancodeSet1::new(),
layouts::Us104Key,
HandleControl::Ignore
));
}

let mut keyboard = KEYBOARD.lock();
Expand Down

0 comments on commit 2870ac4

Please sign in to comment.