StuBS
idt.cc File Reference
#include "machine/idt.h"
#include "machine/gdt.h"
#include "machine/core_interrupt.h"
Include dependency graph for idt.cc:

Structs

struct  IDT::InterruptDescriptor
struct  IDT::Register

Namespaces

namespace  IDT
 "Interrupt Descriptor Table (IDT)

Functions

void IDT::load ()
 Load the IDT's address and size into the IDT-Register via idtr.
void IDT::handle (uint8_t vector, void *handler, enum Gate type=Gate::GATE_INT, enum GateSize size=GateSize::GATE_SIZE_32, enum DPL dpl=DPL::DPL_KERNEL, bool present=true)
 Configure entry point for interrupt handling.

Constants

static struct InterruptDescriptor IDT::idt [256]