summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-04-20 22:18:23 -0400
committerFreya Murphy <freya@freyacat.org>2025-04-20 22:18:23 -0400
commitc946e18e7a5cc30e19d64e3ab049ab3926440d65 (patch)
treee9866fc03884fb0eb4d0aacd99d1d22d490f674c /kernel
parentmake stuff public (diff)
downloadcomus-c946e18e7a5cc30e19d64e3ab049ab3926440d65.tar.gz
comus-c946e18e7a5cc30e19d64e3ab049ab3926440d65.tar.bz2
comus-c946e18e7a5cc30e19d64e3ab049ab3926440d65.zip
fix pic
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cpu/pic.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/kernel/cpu/pic.c b/kernel/cpu/pic.c
index c5c41cc..6e0ca15 100644
--- a/kernel/cpu/pic.c
+++ b/kernel/cpu/pic.c
@@ -25,11 +25,6 @@
void pic_remap(void)
{
- uint8_t a1, a2;
-
- a1 = inb(PIC1_DATA); // save masks
- a2 = inb(PIC2_DATA);
-
outb(PIC1_COMMAND,
ICW1_INIT |
ICW1_ICW4); // starts the initialization sequence (in cascade mode)
@@ -53,8 +48,8 @@ void pic_remap(void)
outb(PIC2_DATA, ICW4_8086);
io_wait();
- outb(PIC1_DATA, a1); // restore saved masks.
- outb(PIC2_DATA, a2);
+ outb(PIC1_DATA, 0);
+ outb(PIC2_DATA, 0);
}
void pic_mask(int irq)