Commit 6aeafc62 authored by Mathieu Maret's avatar Mathieu Maret

correct pic DATA addr

parent 4120e56f
...@@ -24,7 +24,7 @@ void initPic(void) ...@@ -24,7 +24,7 @@ void initPic(void)
* intel * intel
* reserve interupt 0x0-0x1F in protected mode (e.g. 0-7 are CPU exception) */ * reserve interupt 0x0-0x1F in protected mode (e.g. 0-7 are CPU exception) */
outb(PIC_MASTER_DATA, IRQ_INTERRUPT_BASE_ADDRESS); 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 */ /* Send ICW3 master: mask where slaves are connected */
outb(PIC_MASTER_DATA, 0x4); outb(PIC_MASTER_DATA, 0x4);
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#define PIC_MASTER_CMD 0x20 #define PIC_MASTER_CMD 0x20
#define PIC_SLAVE_CMD 0xa0 #define PIC_SLAVE_CMD 0xa0
#define PIC_MASTER_DATA 0x21 #define PIC_MASTER_DATA 0x21
#define PIC_SLAVE_DATA 0xa0 #define PIC_SLAVE_DATA 0xa1
void initPic(void); void initPic(void);
void enableIrq(int irq); void enableIrq(int irq);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment