|
ginnOS
The reference: libc, the libraries and the kernel
|
#include "isr.h"#include "kernel/signal/signal.h"#include "idt.h"#include "common/stdint.h"#include "common/stdio.h"#include "kernel/assert.h"Functions | |
| void | isr_init_gates (void) |
| generated assembly function that installs all ISR gates. | |
| void | isr_initialize (void) |
| initialize the interrupt system. | |
| void | __attribute__ ((cdecl)) |
| common C interrupt dispatcher. | |
| void | isr_register_handler (int vector, isr_handler_t handler) |
| register a handler for an interrupt vector. | |
|
extern |
generated assembly function that installs all ISR gates.
install all 256 ISR stub handlers into the IDT.
generated assembly function that installs all ISR gates.
called by isr_initialize() during kernel startup.
| void isr_initialize | ( | void | ) |
initialize the interrupt system.
initialize the interrupt service routine subsystem.
installs all 256 ISR stubs into the IDT without marking any gate present. a gate becomes present only when a handler is registered via isr_register_handler(), making the present-bit meaningful rather than a blanket "everything is active" flag.
initialize the interrupt system.
installs all 256 ISR gates into the IDT and enables them.
| void __attribute__ | ( | (cdecl) | ) |
common C interrupt dispatcher.
called from the assembly ISR stubs.
| void isr_register_handler | ( | int | vector, |
| isr_handler_t | handler ) |
register a handler for an interrupt vector.
register a handler function for a specific interrupt vector.
register a handler for an interrupt vector.
| vector | interrupt vector number (0–255). |
| handler | pointer to the handler function to call when this interrupt fires. |