ax-cpu 0.10.0

Privileged instruction and structure abstractions for various CPU architectures
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! CPU hardware identity.

#[cfg(any(target_arch = "riscv64", target_arch = "loongarch64"))]
pub use crate::arch::current::capability::has_hypervisor_extension;
#[cfg(target_arch = "loongarch64")]
pub use crate::arch::current::capability::read_cpucfg;
#[cfg(target_arch = "x86_64")]
pub use crate::arch::current::capability::{
    CpuId, CpuidResult, Hypervisor, cpuid, physical_address_bits,
};
#[cfg(target_arch = "aarch64")]
pub use crate::arch::current::capability::{
    IdRegister, Midr, physical_address_bits, read_midr_el1,
};