Module arch

Source
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.