aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 897bbed..7f339c9 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -25,6 +25,10 @@ fn panic(info: &PanicInfo) -> ! {
#[no_mangle]
pub extern "C" fn _entry() -> ! {
+ // init code
+ pic_8259::init();
+ pic_8259::allow(PicDeviceInt::KEYBOARD);
+ interrupt::interrupt_enable();
io::set_attr(0x1f);
io::clear();
println!("--RuStuBs--");
@@ -32,9 +36,6 @@ pub extern "C" fn _entry() -> ! {
println!(" (,-.`._,'( |\\`-/|");
println!(" `-.-' \\ )-`( , o o)");
println!(" `- \\`_`\"'-");
- // testing interrupt/PIC
- // pic_8259::allow(PicDeviceInt::KEYBOARD);
- // interrupt::interrupt_enable();
//
// busy loop query keyboard
let mut framemap = mm::pma::FMap::new();