Guest User

Untitled

a guest
Jun 22nd, 2012
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.43 KB | None | 0 0
  1. #ifndef IDT_H
  2. #define IDT_H
  3.  
  4. #include "stdint.h"
  5.  
  6. #define IDT_INTERRUPT_GATE 0b11000000000
  7. #define IDT_TRAP_GATE      0b11100000000
  8. #define IDT_TASK_GATE      0b10100000000
  9.  
  10. #define IDT_DPL_0                    0b0
  11. #define IDT_DPL_1                    0b1000000000000
  12. #define IDT_DPL_2                    0b10000000000000
  13. #define IDT_DPL_3                    0b11000000000000
  14.  
  15. void load_idt();
  16. void set_idt_entry(int i, uint32_t address, uint16_t selector, uint16_t x);
  17.  
  18. #endif
Advertisement
Add Comment
Please, Sign In to add comment