19 lines
324 B
C
19 lines
324 B
C
#ifndef KIDT_H
|
|
#define KIDT_H
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct __attribute__((packed)){
|
|
uint16_t isr_low;
|
|
uint16_t selector;
|
|
uint8_t reserved;
|
|
uint8_t attributes;
|
|
uint16_t isr_high;
|
|
} idt_entry;
|
|
|
|
typedef struct __attribute__((packed)){
|
|
uint16_t limit;
|
|
uint32_t base;
|
|
} idt_ptr;
|
|
|
|
#endif |