kernel/arch/x86_64/mm/
layout.rs1use crate::lib::addr::VirtAddr;
8
9pub const KERNEL_IMAGE_BASE: VirtAddr = VirtAddr::new(0xffff_ffff_8000_0000);
13pub const KERNEL_IMAGE_SIZE: u64 = 1 << 31; pub const KERNEL_MMIO_BASE: VirtAddr = VirtAddr::new(0xffff_f000_0000_0000);
16pub const KERNEL_MMIO_SIZE: u64 = 1 << 43; pub const KERNEL_PAGE_ARRAY_BASE: VirtAddr = VirtAddr::new(0xffff_e000_0000_0000);
19pub const KERNEL_PAGE_ARRAY_SIZE: u64 = 1 << 44; pub const KERNEL_VMAP_BASE: VirtAddr = VirtAddr::new(0xffff_d000_0000_0000);
22pub const KERNEL_VMAP_SIZE: u64 = 1 << 44; pub const KERNEL_STACKS_BASE: VirtAddr = VirtAddr::new(0xffff_c000_0000_0000);
25pub const KERNEL_STACKS_SIZE: u64 = 1 << 44; pub const KERNEL_HHDM_BASE: VirtAddr = VirtAddr::new(0xffff_8000_0000_0000);
28pub const KERNEL_HHDM_SIZE: u64 = 1 << 46; pub const KERNEL_STACK_SIZE: u64 = 16_384; pub const KERNEL_STACK_SLOT_SIZE: u64 = 1 << 20; pub const USER_MAX: u64 = 0x0000_8000_0000_0000;
37pub const USER_STACK_TOP: VirtAddr = VirtAddr::new(0x0000_7fff_ffff_f000);
38
39pub const USER_MMAP_BASE: VirtAddr = VirtAddr::new(0x0000_7000_0000_0000);
40
41pub const USER_MMAP_MIN: VirtAddr = VirtAddr::new(0x0000_0000_0001_0000);