Expand description
CPU abstraction layer
Provides safe abstractions for CPU-related operations including:
- CPU identification and topology
- Per-CPU data access
- CPU control (halt, interrupt control)
Inspired by Asterinas OSTD CPU module.
Structs§
Functions§
- disable_
irqs - Disable interrupts on the current CPU
- enable_
irqs - Enable interrupts on the current CPU
- halt_
cpu - CPU halt function
- irqs_
enabled - Check if interrupts are enabled on the current CPU
- restore_
irqs - Restore interrupt flags
- save_
and_ disable_ irqs - Save interrupt flags and disable interrupts
- without_
interrupts - Execute a closure with interrupts disabled