correct pic DATA addr

This commit is contained in:
Mathieu Maret 2018-07-13 14:14:14 +02:00
parent 4120e56f82
commit 6aeafc622b
2 changed files with 2 additions and 2 deletions

2
pic.c
View File

@ -24,7 +24,7 @@ void initPic(void)
* intel
* reserve interupt 0x0-0x1F in protected mode (e.g. 0-7 are CPU exception) */
outb(PIC_MASTER_DATA, IRQ_INTERRUPT_BASE_ADDRESS);
outb(PIC_SLAVE_DATA, IRQ_INTERRUPT_BASE_ADDRESS +8);
outb(PIC_SLAVE_DATA, IRQ_INTERRUPT_BASE_ADDRESS + 8);
/* Send ICW3 master: mask where slaves are connected */
outb(PIC_MASTER_DATA, 0x4);

2
pic.h
View File

@ -11,7 +11,7 @@
#define PIC_MASTER_CMD 0x20
#define PIC_SLAVE_CMD 0xa0
#define PIC_MASTER_DATA 0x21
#define PIC_SLAVE_DATA 0xa0
#define PIC_SLAVE_DATA 0xa1
void initPic(void);
void enableIrq(int irq);