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_select! {
10 target_arch = "x86_64" => {
11 pub use x86_64::*;
12 }
13 target_arch = "aarch64" => {
14 pub use aarch64::*;
15 }
16 _ => {
17 compile_error!("target_arch is not supported");
18 }
19}