FrostWing
A lightweight raw-control operating system.
Loading...
Searching...
No Matches
isr.h
Go to the documentation of this file.
1
11
#ifndef ISR_H
12
#define ISR_H
13
14
#include <stdint.h>
15
#include <stddef.h>
16
#include <
graphics.h
>
17
18
typedef
struct
InterruptFrame
19
{
20
uint64_t r11, r10, r9, r8;
21
uint64_t rsi, rdi, rdx, rcx, rax;
22
uint64_t int_no, err_code;
23
uint64_t rip, cs, rflags, rsp, ss;
24
}
__attribute__
((packed))
InterruptFrame
;
25
29
typedef
void(*
irq_handler
)(
InterruptFrame
*);
30
31
void
exceptionHandler(
InterruptFrame
* frame);
32
void
irqHandler(
InterruptFrame
* frame);
33
40
void
registerInterruptHandler
(uint8_t irq,
irq_handler
handler);
41
42
void
rtl8139_handler(
InterruptFrame
* frame);
43
44
#endif
__attribute__
struct acpi_gas __attribute__
Physical Region Descriptor Table (PRDT) entry.
Definition
ahci.h:71
graphics.h
Contains all the print functions.
irq_handler
void(* irq_handler)(InterruptFrame *)
A function pointer for interrupt handlers.
Definition
isr.h:29
registerInterruptHandler
void registerInterruptHandler(uint8_t irq, irq_handler handler)
Registers a handler for an interrupt.
InterruptFrame
Definition
isr.h:19
source
includes
isr.h
Generated by
1.16.1