StuBS
Loading...
Searching...
No Matches
handler.h File Reference

interrupt_handler() Interrupt handler More...

#include "types.h"
#include "machine/core_interrupt.h"
Include dependency graph for handler.h:

Classes

struct  InterruptContext
 Preserved interrupt context. More...
 

Functions

void interrupt_handler (Core::Interrupt::Vector vector, InterruptContext *context)
 High-Level Interrupt Handling.
 

Variables

void *const interrupt_entry []
 Array of function pointer to the default low-level interrupt handlers.
 

Detailed Description

interrupt_handler() Interrupt handler

Variable Documentation

◆ interrupt_entry

void* const interrupt_entry[]

Array of function pointer to the default low-level interrupt handlers.

The index corresponds to the vectors entry function, e.g. interrupt_entry[6] points to interrupt_entry_6, handling the trap for invalid opcode.

The entry functions and this array are defined in assembly in interrupt/handler.asm and used in kernel_init() to initialize the Interrupt Descriptor Table (IDT).