Files
DSA/doc/interrupts.md

28 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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.