1
0
Fork 0
forked from AbleOS/ableos
ableos/kernel/src/arch/mod.rs
2023-03-30 23:43:04 +02:00

17 lines
329 B
Rust

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