Added interrupt and exception handling
This commit is contained in:
32
idt.h
Normal file
32
idt.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef IDT_H
|
||||
#define IDT_H
|
||||
|
||||
#include <efi.h>
|
||||
#include "boot_info.h"
|
||||
|
||||
typedef struct {
|
||||
UINT64 r15;
|
||||
UINT64 r14;
|
||||
UINT64 r13;
|
||||
UINT64 r12;
|
||||
UINT64 r11;
|
||||
UINT64 r10;
|
||||
UINT64 r9;
|
||||
UINT64 r8;
|
||||
UINT64 rbp;
|
||||
UINT64 rdi;
|
||||
UINT64 rsi;
|
||||
UINT64 rdx;
|
||||
UINT64 rcx;
|
||||
UINT64 rbx;
|
||||
UINT64 rax;
|
||||
UINT64 vector;
|
||||
UINT64 error_code;
|
||||
UINT64 rip;
|
||||
UINT64 cs;
|
||||
UINT64 rflags;
|
||||
} ISRFrame;
|
||||
|
||||
void idt_init(BootInfo *Boot);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user