forked from LowLevelDevs/FoundryOS
Introducing the hottest library crate in town (libk!)
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
use lib_ascii::println_log;
|
||||
use lib_serial::serial_println;
|
||||
// use x86_64::instructions::port::Port;
|
||||
use libk::prelude::*;
|
||||
use x86_64::registers::control::Cr2;
|
||||
use x86_64::structures::idt::{InterruptDescriptorTable, InterruptStackFrame, PageFaultErrorCode};
|
||||
|
||||
@@ -98,7 +96,7 @@ extern "x86-interrupt" fn keyboard_interrupt_handler(_stack_frame: InterruptStac
|
||||
let mut port = Port::new(0x60);
|
||||
|
||||
let scancode: u8 = unsafe { port.read() };
|
||||
lib_keyboard::add_scancode(scancode);
|
||||
libk::io::keyboard::add_scancode(scancode);
|
||||
|
||||
unsafe {
|
||||
PICS.lock()
|
||||
|
||||
Reference in New Issue
Block a user