//! 用户空间访问权限

cfg_if::cfg_if! {
    if #[cfg(aarch64_moana)] {
        mod aarch64;
        use aarch64::{ARCH_USER_DS, ARCH_KERNEL_DS};
    } else {
        mod dummy;
        use dummy::{ARCH_USER_DS, ARCH_KERNEL_DS};
    }
}

/// 用户空间地址最大限制
pub const USER_DS: usize = ARCH_USER_DS;
/// 用户空间地址最大范围
pub const USER_SPACE_SIZE: usize = USER_DS + 1;

/// 内核地址最大限制
pub const KERNEL_DS: usize = ARCH_KERNEL_DS;
