next up previous contents index
Next: 10.12.3 base_irq_init: Initialize hardware Up: (X86 PC) Base Environment: Previous: 10.12.1 base_irq.h: Hardware interrupt

10.12.2 base_irq_handlers: Array of handler routines for hardware interrupts

   

SYNOPSIS

#include <oskit/x86/pc/base_irq.h>

void (*base_irq_handlers [BASE_IRQ_COUNT]) (struct trap_state *ts);

DESCRIPTION

Contains a function pointer for every hardware interrupt vector. By default, all entries in this table point to base_irq_default_handler. Custom interrupt handlers can be installed by changing the appropriate table entry.

Interrupt handlers can freely examine and modify the processor state (10.8.1) of the interrupted activity, e.g., to implement threads and preemption. On entry, the processor's IDT interrupt vector number is in ts->trapno and the hardware IRQ number that caused the interrupt is in ts->err.

DEPENDENCIES

base_irq_default_handler
10.12.5



University of Utah Flux Research Group