forked from AbleOS/ableos
17 lines
323 B
Rust
17 lines
323 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 $arch::*;
|
||
|
)*};
|
||
|
}
|
||
|
|
||
|
arch_cond!(
|
||
|
aarch64: "aarch64",
|
||
|
riscv64: "riscv64",
|
||
|
x86_64: "x86_64",
|
||
|
);
|