Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef IDT_H
- #define IDT_H
- #include "stdint.h"
- #define IDT_INTERRUPT_GATE 0b11000000000
- #define IDT_TRAP_GATE 0b11100000000
- #define IDT_TASK_GATE 0b10100000000
- #define IDT_DPL_0 0b0
- #define IDT_DPL_1 0b1000000000000
- #define IDT_DPL_2 0b10000000000000
- #define IDT_DPL_3 0b11000000000000
- void load_idt();
- void set_idt_entry(int i, uint32_t address, uint16_t selector, uint16_t x);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment