From 49afcdfadfb928da1c76677170392b745dbeb834 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 6 Mar 2016 13:00:38 -0500 Subject: [PATCH] Initialize hardware interrupts --- src/Main.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Main.cc b/src/Main.cc index 2bed690..2658cdc 100644 --- a/src/Main.cc +++ b/src/Main.cc @@ -2,6 +2,7 @@ #include #include "Console.hh" #include "Descriptors.hh" +#include "PIC.hh" #if defined(__linux__) #error "This file should be compiled with a cross-compiler, not the Linux system compiler!" @@ -53,4 +54,9 @@ kmain() idt.load(); console.writeString("IDT loaded\n"); + + auto pic = kernel::x86::PIC::systemPIC(); + pic.remap(0x20, 0x28, 2); // Map hardware IRQs to interrupt vectors 32 through 48. + + console.writeString("Hardware interrupts programmed\n"); }