1#![cfg_attr(not(test), no_std)]
2#![cfg_attr(docsrs, feature(doc_cfg))]
3#![feature(extern_item_impls)]
4#![deny(missing_docs)]
5#![doc = include_str!("../README.md")]
6
7#[macro_use]
8extern crate log;
9
10#[macro_use]
11extern crate ax_memory_addr;
12
13#[macro_use]
14pub mod trap;
15
16#[cfg(feature = "uspace")]
17mod uspace_common;
18
19cfg_if::cfg_if! {
20 if #[cfg(target_arch = "x86_64")] {
21 mod x86_64;
22 pub use self::x86_64::*;
23 } else if #[cfg(any(target_arch = "riscv32", target_arch = "riscv64"))] {
24 mod riscv;
25 pub use self::riscv::*;
26 } else if #[cfg(target_arch = "aarch64")]{
27 mod aarch64;
28 pub use self::aarch64::*;
29 } else if #[cfg(any(target_arch = "loongarch64"))] {
30 mod loongarch64;
31 pub use self::loongarch64::*;
32 }
33}