correct pic DATA addr
This commit is contained in:
parent
4120e56f82
commit
6aeafc622b
2
pic.c
2
pic.c
@ -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);
|
||||||
|
2
pic.h
2
pic.h
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user