2020-07-25 16:54:37 -05:00
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
*/
|
|
|
|
|
2019-02-10 14:11:07 -06:00
|
|
|
#ifndef IDT_H
|
|
|
|
#define IDT_H
|
|
|
|
|
2020-07-25 16:54:37 -05:00
|
|
|
|
2019-02-10 14:11:07 -06:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2020-07-25 16:54:37 -05:00
|
|
|
/**
|
|
|
|
* Sets an IDT gate.
|
|
|
|
* \param n the IDT gate to set
|
|
|
|
* \param handler the handler for the gate.
|
|
|
|
*/
|
2019-03-11 09:32:55 -05:00
|
|
|
void idt_set_gate(int n,uint32_t handler);
|
2020-07-25 16:54:37 -05:00
|
|
|
/**
|
|
|
|
* Loads the IDT
|
|
|
|
*/
|
2019-03-11 09:32:55 -05:00
|
|
|
void load_idt();
|
2019-02-10 14:11:07 -06:00
|
|
|
|
|
|
|
#endif
|