12 lines
259 B
C++
12 lines
259 B
C++
#pragma once
|
|
#include <stdint.h>
|
|
|
|
#define IDT_TA_InterruptGate 0b10001110
|
|
#define IDT_TA_CallGate 0b10001100
|
|
#define IDT_TA_TrapGate 0b10001111
|
|
|
|
namespace IDT
|
|
{
|
|
void add_handler(short interrupt_number, void* handler, uint8_t type_attr);
|
|
void load();
|
|
} |