Untitled_Kernel/include/interrupt_handlers.h
lordtet 8c51b7010e Interrupt Descriptors implemented
Now just need to populate the IDT, then debug the whole thing.
2025-06-16 22:40:02 -04:00

14 lines
332 B
C

#ifndef INTERRUPTHANDLERS_H
#define INTERRUPTHANDLERS_H
#include <stdint.h>
extern void* isr_ptrs;
typedef struct StateSnapshot_s {
uint32_t eax, ecx, edx, ebx, esp, esi, edi;
uint32_t interrupt_id, error_code;
uint32_t eip, cs, eflags;
} StateSnapshot_t;
void generic_isr_handler(StateSnapshot_t* cpu_state);
#endif