ableos/kernel/src/arch/mod.rs

17 lines
329 B
Rust
Raw Normal View History

//! Architecture specific code
macro_rules! arch_cond {
($($arch:ident: $str:literal),* $(,)?) => {$(
#[cfg(target_arch = $str)]
pub mod $arch;
#[cfg(target_arch = $str)]
2022-12-06 18:43:26 -06:00
pub use self::$arch::*;
)*};
}
arch_cond!(
aarch64: "aarch64",
riscv64: "riscv64",
x86_64: "x86_64",
);