Files
DSA/doc/interrupts.md
T

1.2 KiB
Raw Blame History

0 => InvalidInterrupt CPU exception for an invalid interrupt request
1 => PageFault CPU exception triggered by an illegal memory access
2 => ProtectionFault CPU exception for a protection violation (e.g., privilege level)
3 => InvalidOpcode CPU exception for executing an undefined opcode
4 => DivideByZero CPU exception when dividing by zero
5 => StackOverflow CPU exception due to stack overflow
6 => WriteToReadOnly CPU exception for writing to a readonly segment
7 => ReadFromWriteOnly CPU exception for reading from a writeonly segment
8 => UnmappedIo CPU exception for accessing unmapped I/O

Reserved Range (931): Future CPU exceptions


IRQ Range (3263)

  • Hardware Represents hardware interrupt requests.

32 => SerialIn Interrupt triggered by serial input


Syscall Range (64255)

  • Software(u8) Represents system calls.
    The enum is aliased to start at value 128, so valid syscall numbers are 128255.
    Programs typically use the range 64127 for OSdefined syscalls, while values ≥128 are reserved for software interrupts.