mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2025-11-22 08:35:27 -08:00
- Makefile: fix linker script path - irq.c: `irqN()` stubs - irq.h: fix missing header - isr.h/isr.c extern `interrupt_handlers` - utils.c: remove duplicate `memcmp`
15 lines
306 B
C
15 lines
306 B
C
#ifndef ISR_H
|
|
#define ISR_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#define MAX_INTERRUPTS 256
|
|
|
|
typedef void (*isr_callback_t)(void);
|
|
extern isr_callback_t interrupt_handlers[MAX_INTERRUPTS];
|
|
|
|
void isr_handler(uint32_t int_num, uint32_t err_code);
|
|
void register_interrupt_handler(uint8_t n, isr_callback_t handler);
|
|
|
|
#endif
|