1 #include <inttypes.h> 2 #include <stdbool.h> 3 4 #define IVT_BASE 0x0000 5 #define IVT_VECTORS 256 6 7 struct ivt_entry { 8 uint16_t offset; 9 uint16_t segment; 10 } __attribute__((packed)); 11 12 void ivt_reset(void); 13 void ivt_copy_table(void *dst, unsigned int size); 14 struct ivt_entry * const ivt_get_entry(unsigned int n); 15 void ivt_set_entry(struct ivt_entry e, unsigned int n); 16 void ivt_set_all(struct ivt_entry e); 17