miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
idt.c File Reference
#include <miniOS/arch/x86_64/irq.h>
#include <miniOS/arch/x86_64/segment.h>
#include <miniOS/io.h>
#include <string.h>
Include dependency graph for idt.c:

Macros

#define IDT_NUM_VECTORS   256

Functions

struct idt_entry_t IDT[IDT_NUM_VECTORS__attribute__ ((aligned(4)))
void idt_reload (void)
void idt_init ()
void idt_set_handler (uint8_t type, addr_t handler_addr, unsigned int dpl, uint8_t gate_type)

Variables

idt_handler_funcirq_handlers [NR_IRQS] = {0}
idt_handler_funcexception_handlers [NR_EXCEPTIONS] = {0}

Macro Definition Documentation

◆ IDT_NUM_VECTORS

#define IDT_NUM_VECTORS   256

Function Documentation

◆ __attribute__()

struct idt_entry_t IDT[IDT_NUM_VECTORS] __attribute__ ( (aligned(4)) )

◆ idt_init()

void idt_init ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ idt_reload()

void idt_reload ( void )
Here is the caller graph for this function:

◆ idt_set_handler()

void idt_set_handler ( uint8_t type,
addr_t handler_addr,
unsigned int dpl,
uint8_t gate_type )
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ exception_handlers

idt_handler_func* exception_handlers[NR_EXCEPTIONS] = {0}

◆ irq_handlers

idt_handler_func* irq_handlers[NR_IRQS] = {0}