MyOS Kernel
isr.h File Reference
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  registers_t
 

Typedefs

typedef void(* isr_t) (registers_t *)
 Type of an ISR handler function pointer.
 

Functions

void isr_install ()
 
void isr_register_handler (int n, isr_t handler)
 

Function Documentation

◆ isr_install()

void isr_install ( )

Install the interrupt handlers into the IDT.

◆ isr_register_handler()

void isr_register_handler ( int  n,
isr_t  handler 
)

Register an IRQ handler

Parameters
nthe IRQ to register a handler for
handlerthe handler to register