openhcl_boot/arch/mod.rs
1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4//! Imports and re-exports architecture-specific implementations.
5
6mod aarch64;
7mod x86_64;
8
9cfg_if::cfg_if!(
10 if #[cfg(target_arch = "x86_64")] {
11 pub use x86_64::*;
12 } else if #[cfg(target_arch = "aarch64")] {
13 pub use aarch64::*;
14 } else {
15 compile_error!("target_arch is not supported");
16 }
17);