blob: 587419be3925bb78bde61d2d71a697c6a3fcd857 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef _IDT_H_
#define _IDT_H_
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
void idt_set_isr(uint8_t num, uint64_t offset, uint16_t sel, uint8_t flags);
void idt_init();
extern uint64_t isr_table[32];
bool idt_register_isr(size_t num, void (*func)(uint64_t, uint64_t));
bool idt_remove_isr(size_t num, void (*func)(uint64_t, uint64_t));
#endif
|