FrostWing
A lightweight raw-control operating system.
Loading...
Searching...
No Matches
isr.h File Reference

Interrupts handler header. More...

#include <stdint.h>
#include <stddef.h>
#include <graphics.h>
Include dependency graph for isr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  InterruptFrame

Typedefs

typedef void(* irq_handler) (InterruptFrame *)
 A function pointer for interrupt handlers.

Functions

struct InterruptFrame __attribute__ ((packed)) InterruptFrame
 AHCI command header structure.
void exceptionHandler (InterruptFrame *frame)
void irqHandler (InterruptFrame *frame)
void registerInterruptHandler (uint8_t irq, irq_handler handler)
 Registers a handler for an interrupt.
void rtl8139_handler (InterruptFrame *frame)

Variables

uint64_t r11
uint64_t r10
uint64_t r9
uint64_t r8
uint64_t rsi
uint64_t rdi
uint64_t rdx
uint64_t rcx
uint64_t rax
uint64_t int_no
uint64_t err_code
uint64_t rip
uint64_t cs
uint64_t rflags
uint64_t rsp
uint64_t ss

Detailed Description

Interrupts handler header.

Author
Pradosh (prado.nosp@m.shga.nosp@m.me@gm.nosp@m.ail..nosp@m.com) & GAMINGNOOB
Version
0.1
Date
2025-02-03

Definition in file isr.h.

Typedef Documentation

◆ irq_handler

typedef void(* irq_handler) (InterruptFrame *)

A function pointer for interrupt handlers.

Definition at line 29 of file isr.h.

Function Documentation

◆ __attribute__()

struct InterruptFrame __attribute__ ( (packed) )

AHCI command header structure.

AHCI command table structure.

Physical Region Descriptor Table (PRDT) entry.

Represents the command header for a single AHCI port.

AHCI command header structure.

Definition at line 1 of file ahci.h.

◆ registerInterruptHandler()

void registerInterruptHandler ( uint8_t irq,
irq_handler handler )

Registers a handler for an interrupt.

Parameters
irqThe interrupt number of the handler
handlerPointer to the handler function

Variable Documentation

◆ cs

uint64_t cs

Definition at line 3 of file isr.h.

◆ err_code

uint64_t err_code

Definition at line 2 of file isr.h.

◆ int_no

uint64_t int_no

Definition at line 2 of file isr.h.

◆ r10

uint64_t r10

Definition at line 0 of file isr.h.

◆ r11

uint64_t r11

Definition at line 0 of file isr.h.

◆ r8

uint64_t r8

Definition at line 0 of file isr.h.

◆ r9

uint64_t r9

Definition at line 0 of file isr.h.

◆ rax

uint64_t rax

Definition at line 1 of file isr.h.

◆ rcx

uint64_t rcx

Definition at line 1 of file isr.h.

◆ rdi

uint64_t rdi

Definition at line 1 of file isr.h.

◆ rdx

uint64_t rdx

Definition at line 1 of file isr.h.

◆ rflags

uint64_t rflags

Definition at line 3 of file isr.h.

◆ rip

uint64_t rip

Definition at line 3 of file isr.h.

◆ rsi

uint64_t rsi

Definition at line 1 of file isr.h.

◆ rsp

uint64_t rsp

Definition at line 3 of file isr.h.

◆ ss

uint64_t ss

Definition at line 3 of file isr.h.