// Maximum address in the userspace virtual address range.
// Uses the largest standard configuration to ensure correctness across all systems.
use crateHEADER_SIZE;
// Supports both 4-level (48-bit) and 5-level (57-bit) paging.
// Use 57-bit limit (128 PiB) as the safe, universal maximum.
pub const MAX_USABLE: usize = - 1;
// Supports configurations up to 52-bit virtual address space (4 PiB).
pub const MAX_USABLE: usize = - 1;
// Supports standard 48-bit Sv48 and upcoming 57-bit Sv57 modes.
// Use 57-bit limit as the safe, universal maximum.
pub const MAX_USABLE: usize = - 1;
// Fallback for unknown architectures. Will result in an extra conditional branch in the fast path.
// Not a big deal.
pub const MAX_USABLE: usize = usizeMAX;
pub const SAFE_SIZE: usize = usizeMAX - MAX_USABLE;
// The absolute minimum address that the header can live at
// is at 0x10, as 0x00 is guaranteed to not be valid, and
// we allocate chunks that are 16-byte aligned.
// This means that the absolute minimum address that `top`
// can start at is 0x20.
pub const MIN_TOP: usize = HEADER_SIZE * 2;