Expand description
Platform-specific code for the x86 platform.
ModulesΒ§
- boot
- The x86 boot module defines the entrypoints of Asterinas and the corresponding headers for different x86 boot protocols.
- cpu π
- CPU context & state control and CPU local memory.
- device
- Device-related APIs. This module mainly contains the APIs that should exposed to the device driver like PCI, RTC
- ex_
table π - io π
- iommu π
- The IOMMU support.
- irq π
- Interrupts.
- kernel
- Architecture kernel module.
- mm π
- pci π
- PCI bus access
- qemu
- Provides the ability to exit QEMU and return a value as debug result.
- serial π
- The console I/O.
- task π
- The architecture support of context switch.
- tdx_
guest π - timer
- The timer support.
- trap
- Handles trap.
MacrosΒ§
- if_
tdx_ enabled - Inserts a TDX-specific code block.
StaticsΒ§
- CPU_
FEATURES π
FunctionsΒ§
- enable_
cpu_ πfeatures - has_avx π
- has_
avx512 π - init_
cvm_ πguest - init_
on_ π βap - Architecture-specific initialization on the application processor.
- interrupts_
ack π - late_
init_ π βon_ bsp - Architecture-specific initialization on the bootstrapping processor.
- read_
random - Reads a hardware generated 64-bit random value.
- read_
tsc - Reads the current value of the processorβs time-stamp counter (TSC).
- tsc_
freq - Returns the frequency of TSC. The unit is Hz.