feat(cpu): install IDT with exception and syscall gate handling
This commit is contained in:
1 parent
4843406bf3
commit
e5c4139e49
4 files changed
+145
No files matched your search
@@ -0,0 +1,6 @@
|
||||
#ifndef FROSTBYTE_IDT_H
|
||||
#define FROSTBYTE_IDT_H
|
||||
|
||||
void idtInit(void);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,16 @@
|
||||
#ifndef FROSTBYTE_ISR_H
|
||||
#define FROSTBYTE_ISR_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
typedef struct Registers {
|
||||
uint64 r15, r14, r13, r12, r11, r10, r9, r8;
|
||||
uint64 rbp, rdi, rsi, rdx, rcx, rbx, rax;
|
||||
uint64 intNo, errCode;
|
||||
uint64 rip, cs, rflags, rsp, ss;
|
||||
} __attribute__((packed)) Registers;
|
||||
|
||||
uint64 isrDispatch(Registers* regs);
|
||||
uint64 syscallDispatch(Registers* regs);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user