Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/include/vmparam.h
Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
#define VM_MIN_ADDRESS (0x0000000000000000UL) | #define VM_MIN_ADDRESS (0x0000000000000000UL) | ||||
#define VM_MAX_ADDRESS (0xffffffffffffffffUL) | #define VM_MAX_ADDRESS (0xffffffffffffffffUL) | ||||
/* 512 GiB of kernel addresses */ | /* 512 GiB of kernel addresses */ | ||||
#define VM_MIN_KERNEL_ADDRESS (0xffff000000000000UL) | #define VM_MIN_KERNEL_ADDRESS (0xffff000000000000UL) | ||||
#define VM_MAX_KERNEL_ADDRESS (0xffff008000000000UL) | #define VM_MAX_KERNEL_ADDRESS (0xffff008000000000UL) | ||||
/* 2 TiB maximum for the direct map region */ | /* 95 TiB maximum for the direct map region */ | ||||
#define DMAP_MIN_ADDRESS (0xfffffd0000000000UL) | #define DMAP_MIN_ADDRESS (0xffffa00000000000UL) | ||||
#define DMAP_MAX_ADDRESS (0xffffff0000000000UL) | #define DMAP_MAX_ADDRESS (0xffffff0000000000UL) | ||||
#define DMAP_MIN_PHYSADDR (dmap_phys_base) | #define DMAP_MIN_PHYSADDR (dmap_phys_base) | ||||
#define DMAP_MAX_PHYSADDR (dmap_phys_max) | #define DMAP_MAX_PHYSADDR (dmap_phys_max) | ||||
/* True if pa is in the dmap range */ | /* True if pa is in the dmap range */ | ||||
#define PHYS_IN_DMAP(pa) ((pa) >= DMAP_MIN_PHYSADDR && \ | #define PHYS_IN_DMAP(pa) ((pa) >= DMAP_MIN_PHYSADDR && \ | ||||
(pa) < DMAP_MAX_PHYSADDR) | (pa) < DMAP_MAX_PHYSADDR) | ||||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |