diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-20 22:18:23 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-20 23:44:40 -0400 |
commit | 7e94e01a67e26ae72d790f38e969924a6e373f48 (patch) | |
tree | 5b50544b48c95f38bd42a6034880bad1aa80ce67 /kernel/cpu/pic.c | |
parent | refactor ATA interface (diff) | |
download | comus-7e94e01a67e26ae72d790f38e969924a6e373f48.tar.gz comus-7e94e01a67e26ae72d790f38e969924a6e373f48.tar.bz2 comus-7e94e01a67e26ae72d790f38e969924a6e373f48.zip |
fix pic
Diffstat (limited to 'kernel/cpu/pic.c')
-rw-r--r-- | kernel/cpu/pic.c | 9 |
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) |