Skip to content

Commit

Permalink
drivers/pic: drop level sensitive irq configuration
Browse files Browse the repository at this point in the history
Among others, KVM does not support it.

Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
  • Loading branch information
wipawel authored and 82marbag committed Oct 8, 2021
1 parent 6de0aa7 commit f078cdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/pic.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ static inline void pic_outb(io_port_t port, unsigned char value) {

void init_pic(void) {
/* Cascade mode initialization sequence */
pic_outb(PIC1_PORT_CMD, PIC_ICW1_INIT | PIC_ICW1_LEVEL | PIC_ICW1_ICW4);
pic_outb(PIC2_PORT_CMD, PIC_ICW1_INIT | PIC_ICW1_LEVEL | PIC_ICW1_ICW4);
pic_outb(PIC1_PORT_CMD, PIC_ICW1_INIT | PIC_ICW1_ICW4);
pic_outb(PIC2_PORT_CMD, PIC_ICW1_INIT | PIC_ICW1_ICW4);

/* Remap PICs interrupt vectors */
pic_outb(PIC1_PORT_DATA, PIC_IRQ0_OFFSET);
Expand Down

0 comments on commit f078cdd

Please sign in to comment.