Added interrupt and exception handling

This commit is contained in:
2026-02-26 20:12:45 +00:00
parent 4d447d3dec
commit 95c0f15640
5 changed files with 789 additions and 2 deletions

32
idt.h Normal file
View 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