kern/interrupts.c
// Remap IRQs 0-15 to interrupts 32-47
Remap IRQs 0-15 to interrupts 32-47
Remap IRQs 0 - 15 to interrupts 32 - 47
int irq_remap(void) {
	outportb(0x20, 0x11);
	outportb(0xA0, 0x11);
	outportb(0x21, 0x20);
	outportb(0xA1, 0x28);
	outportb(0x21, 0x04);
	outportb(0xA1, 0x02);
	outportb(0x21, 0x01);
	outportb(0xA1, 0x01);
	outportb(0x21, 0x0);
	return 0;
}
int irq_remap ( void ) { outportb ( 0x20 , 0x11 ) ; outportb ( 0xA0 , 0x11 ) ; outportb ( 0x21 , 0x20 ) ; outportb ( 0xA1 , 0x28 ) ; outportb ( 0x21 , 0x04 ) ; outportb ( 0xA1 , 0x02 ) ; outportb ( 0x21 , 0x01 ) ; outportb ( 0xA1 , 0x01 ) ; outportb ( 0x21 , 0x0 ) ; return 0 ; }
Remap IRQs 0-15 to interrupts 32-47
Remap IRQs 0 - 15 to interrupts 32 - 47
// We are talking 8259 PIC here: http://wiki.osdev.org/PIC