summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-10-25 22:40:26 +0200
committerAnton Kling <anton@kling.gg>2023-10-30 21:49:48 +0100
commit0503ff5d7c1630d19ca494621b4fd34a53ddc41e (patch)
treeec95948fdac4c8a59026df59a5ab08f73c606a14 /cpu
parent9ea708da24784d2f4960f0353b7a08c0c2c08145 (diff)
Kernel: Add basic support for PCI and rtl8139
This implementation is very messy and is currently not used.
Diffstat (limited to 'cpu')
-rw-r--r--cpu/idt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpu/idt.c b/cpu/idt.c
index 90bd56e..1a8c95e 100644
--- a/cpu/idt.c
+++ b/cpu/idt.c
@@ -257,9 +257,10 @@ void idt_init(void) {
install_handler(kernel_general_protection_fault, INT_32_TRAP_GATE(0x0), 0xD);
PIC_remap(0x20);
- // IRQ_set_mask(0xc);
- IRQ_clear_mask(0x5);
- IRQ_clear_mask(0xB);
+ IRQ_clear_mask(0xb);
+ IRQ_set_mask(0xe);
+ IRQ_set_mask(0xf);
+ IRQ_clear_mask(2);
/*
IRQ_set_mask(0xe);
IRQ_set_mask(2);