2026-06-11 23:23:39 -05:00
|
|
|
#ifndef KIDT_H
|
|
|
|
|
#define KIDT_H
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
2026-06-12 23:03:00 -04:00
|
|
|
typedef struct __attribute__((packed)){
|
2026-06-17 18:16:47 -05:00
|
|
|
uint16_t isr_low;
|
|
|
|
|
uint16_t selector;
|
|
|
|
|
uint8_t reserved;
|
|
|
|
|
uint8_t attributes;
|
|
|
|
|
uint16_t isr_high;
|
2026-06-12 23:03:00 -04:00
|
|
|
} idt_entry;
|
2026-06-11 23:23:39 -05:00
|
|
|
|
2026-06-12 23:03:00 -04:00
|
|
|
typedef struct __attribute__((packed)){
|
2026-06-11 23:23:39 -05:00
|
|
|
uint16_t limit;
|
|
|
|
|
uint32_t base;
|
2026-06-12 23:03:00 -04:00
|
|
|
} idt_ptr;
|
2026-06-11 23:23:39 -05:00
|
|
|
|
|
|
|
|
#endif
|