Skip to content

Commit

Permalink
Remove duplicated and buggy code (#225)
Browse files Browse the repository at this point in the history
* Remove duplicated and buggy code

* Add trigger mode update
  • Loading branch information
dreamos82 authored Dec 11, 2024
1 parent 137159a commit 76a6015
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/kernel/arch/x86_64/cpu/ioapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,7 @@ void set_irq(uint8_t irq_type, uint8_t redirect_table_pos, uint8_t idt_entry, ui
} else {
entry.pin_polarity = 0b0;
}
if(((io_apic_source_overrides[counter].flags >>2) & 0b11) == 2) {
entry.pin_polarity = 0b1;
} else {
entry.pin_polarity = 0b0;
}
entry.trigger_mode = (((io_apic_source_overrides[counter].flags >> 2) & 0b11) == 2);
break;
}
counter++;
Expand Down

0 comments on commit 76a6015

Please sign in to comment.