IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
Loading...
Searching...
No Matches
isr.hpp File Reference

Interrupts low-level operations. More...

#include <array>
#include <type_traits>
#include <arch/types.hpp>
#include <arch/x86/native.hpp>
Include dependency graph for isr.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  igros
 IgrOS kernel: common types and literals.
namespace  igros::x86
 Code shared by i386 and x86_64: ports, interrupts, exceptions, paging.

Typedefs

using igros::x86::isr_t = std::add_pointer_t<void(const register_t* const)>
 Interrupt service routine handler type.

Functions

void igros::x86::isrHandlerInstall (const igros_usize_t number, const isr_t handle) noexcept
 Install interrupt service routine handler.
void igros::x86::isrHandlerUninstall (const igros_usize_t number) noexcept
 Uninstall interrupt service routine handler.
void isrHandler (const igros::x86::register_t *regs) noexcept
 Interrupts handler function (called from isr.s).

Variables

constexpr auto igros::x86::IRQ_OFFSET {32_usize}
 IRQ offset in ISR list.
constexpr auto igros::x86::ISR_SIZE {256_usize}
 ISR list size.

Detailed Description

Interrupts low-level operations.

Date
03 Nov 2026
Author
Igor Baklykov

Definition in file isr.hpp.

Function Documentation

◆ isrHandler()

void isrHandler ( const igros::x86::register_t * regs)
noexcept

Interrupts handler function (called from isr.s).

Parameters
regsRegisters saved by interrupt entry stub

Definition at line 54 of file isr.cpp.