mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-25 16:52:29 +00:00
Initial commit: SUB-OS 64-Bit Production Monolithic Operating System with LazyBox userland suite
This commit is contained in:
commit
cd9c786d14
88 files changed
+7132
No files matched your search
@@ -0,0 +1,19 @@
|
||||
#ifndef _ARCH_X86_64_ISR_H
|
||||
#define _ARCH_X86_64_ISR_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
uint64_t r15, r14, r13, r12, r11, r10, r9, r8;
|
||||
uint64_t rbp, rdi, rsi, rdx, rcx, rbx, rax;
|
||||
uint64_t int_no, error_code;
|
||||
uint64_t rip, cs, rflags, rsp, ss;
|
||||
} __attribute__((packed)) registers_t;
|
||||
|
||||
typedef void (*isr_handler_t)(registers_t*);
|
||||
|
||||
void isr_init(void);
|
||||
void isr_register_handler(uint8_t int_no, isr_handler_t handler);
|
||||
void isr_unregister_handler(uint8_t int_no);
|
||||
|
||||
#endif // _ARCH_X86_64_ISR_H
|
||||
Reference in new issue
Block a user