forked from AbleOS/ableos
Skeleton for architecture-specific things
parent
ed0c0ad43f
commit
41ee39e1b9
|
@ -0,0 +1 @@
|
||||||
|
//!
|
|
@ -0,0 +1,16 @@
|
||||||
|
//! 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",
|
||||||
|
);
|
|
@ -0,0 +1 @@
|
||||||
|
//!
|
|
@ -0,0 +1 @@
|
||||||
|
//!
|
|
@ -7,6 +7,7 @@
|
||||||
extern crate alloc;
|
extern crate alloc;
|
||||||
|
|
||||||
pub mod allocator;
|
pub mod allocator;
|
||||||
|
pub mod arch;
|
||||||
pub mod task;
|
pub mod task;
|
||||||
|
|
||||||
use versioning::Version;
|
use versioning::Version;
|
||||||
|
|
Loading…
Reference in New Issue