summaryrefslogtreecommitdiff
path: root/crates/kernel/src/arch/mod.rs
blob: 1afe41c96bc0fa0e3cdfa852805c85673ff3671e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
cfg_if::cfg_if! {
    if #[cfg(not(target_os = "none"))] {
        mod hosted;
        pub use self::hosted::*;
    } else if #[cfg(target_arch = "riscv64")] {
        mod riscv64;
        pub use self::riscv64::*;
    } else {
        compile_error!("unsupported platform");
    }
}

/// The size of a regular-sized page of memory.
pub const PAGE_SIZE: usize = 1 << PAGE_SIZE_BITS;