1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Platform-specific operations.

cfg_if::cfg_if! {
    if #[cfg(all(target_arch = "aarch64", any(
        platform_family = "aarch64-qemu-virt",
        platform_family = "aarch64-raspi",
        platform_family = "aarch64-bsta1000b",
        platform_family = "aarch64-rk3588j")))]
    {
        mod aarch64_common;
        pub use self::aarch64_common::*;
    }
}

cfg_if::cfg_if! {
if #[cfg(all(target_arch = "x86_64", platform_family = "x86-pc"))] {
        mod x86_pc;
        pub use self::x86_pc::*;
    } else if #[cfg(all(target_arch = "riscv64", platform_family = "riscv64-qemu-virt"))] {
        mod riscv64_qemu_virt;
        pub use self::riscv64_qemu_virt::*;
    } else if #[cfg(all(target_arch = "aarch64", platform_family = "aarch64-qemu-virt"))] {
        mod aarch64_qemu_virt;
        pub use self::aarch64_qemu_virt::*;
    } else if #[cfg(all(target_arch = "aarch64", platform_family = "aarch64-raspi"))] {
        mod aarch64_raspi;
        pub use self::aarch64_raspi::*;
    } else if #[cfg(all(target_arch = "aarch64", platform_family = "aarch64-bsta1000b"))] {
        mod aarch64_bsta1000b;
        pub use self::aarch64_bsta1000b::*;
    } else if #[cfg(all(target_arch = "aarch64", platform_family = "aarch64-rk3588j"))] {
        mod aarch64_rk3588j;
        pub use self::aarch64_rk3588j::*;
    } else {
        mod dummy;
        pub use self::dummy::*;
    }
}