|
ginnOS
The reference: libc, the libraries and the kernel
|
#include "common/stdint.h"Go to the source code of this file.
Data Structures | |
| struct | registers |
| saved register state pushed onto the stack by ISR stubs. More... | |
Macros | |
| #define | REG_IP(r) |
| #define | REG_SP(r) |
| #define | REG_FP(r) |
| #define | REG_FLAGS(r) |
| #define | REG_RESULT(r) |
| #define | EFLAGS_IF 0x200u |
Typedefs | |
| typedef void(*) | isr_handler_t(struct registers *regs) |
| interrupt service routine handler function type. | |
Functions | |
| struct registers | __attribute__ ((packed)) |
| void | isr_initialize (void) |
| initialize the interrupt service routine subsystem. | |
| void | isr_register_handler (int vector, isr_handler_t handler) |
| register a handler function for a specific interrupt vector. | |
| #define REG_IP | ( | r | ) |
| #define REG_SP | ( | r | ) |
| #define REG_FP | ( | r | ) |
| #define REG_FLAGS | ( | r | ) |
| #define REG_RESULT | ( | r | ) |
| #define EFLAGS_IF 0x200u |
| typedef void(*) isr_handler_t(struct registers *regs) |
interrupt service routine handler function type.
| regs | pointer to the saved register state at the time of the interrupt. |
| struct registers __attribute__ | ( | (packed) | ) |
| void isr_initialize | ( | void | ) |
initialize the interrupt service routine subsystem.
initialize the interrupt system.
installs all 256 ISR gates into the IDT and enables them.
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.
| void isr_register_handler | ( | int | vector, |
| isr_handler_t | handler ) |
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. |
register a handler function for a specific interrupt vector.
| uint32_t ds |
| uint32_t edi |
| uint32_t esi |
| uint32_t ebp |
| uint32_t kern_esp |
| uint32_t ebx |
| uint32_t edx |
| uint32_t ecx |
| uint32_t eax |
| uint32_t interrupt |
| uint32_t error |
| uint32_t eip |
| uint32_t cs |
| uint32_t eflags |
| uint32_t esp |
| uint32_t ss |