Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 575 → Rev 576

/kernel/trunk/arch/ia32/src/drivers/i8259.c
32,6 → 32,7
#include <arch/asm.h>
#include <arch.h>
#include <print.h>
#include <interrupt.h>
 
/*
* This is the PIC driver.
38,6 → 39,8
* Programmable Interrupt Controller for UP systems.
*/
 
static void pic_spurious(int n, void *stack);
 
void i8259_init(void)
{
/* ICW1: this is ICW1, ICW4 to follow */
67,7 → 70,7
/*
* Register interrupt handler for the PIC spurious interrupt.
*/
trap_register(VECTOR_PIC_SPUR, pic_spurious);
exc_register(VECTOR_PIC_SPUR, "pic_spurious", pic_spurious);
 
/*
* Set the enable/disable IRQs handlers.
115,7 → 118,7
outb(0xa0,0x20);
}
 
void pic_spurious(__u8 n, __native stack[])
void pic_spurious(int n, void *stack)
{
printf("cpu%d: PIC spurious interrupt\n", CPU->id);
}