Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/include/vmparam.h
Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | |||||
* mappable kernel virtual address space. | * mappable kernel virtual address space. | ||||
* | * | ||||
* VM_MIN_USER_ADDRESS and VM_MAX_USER_ADDRESS define the start and end of the | * VM_MIN_USER_ADDRESS and VM_MAX_USER_ADDRESS define the start and end of the | ||||
* user address space. | * user address space. | ||||
*/ | */ | ||||
#define VM_MIN_ADDRESS (0x0000000000000000UL) | #define VM_MIN_ADDRESS (0x0000000000000000UL) | ||||
#define VM_MAX_ADDRESS (0xffffffffffffffffUL) | #define VM_MAX_ADDRESS (0xffffffffffffffffUL) | ||||
#define VM_MAX_PHYS_ADDRESS VM_MAX_ADDRESS | |||||
kib: I do not believe this is right. VM_MAX_ADDRESS seems to be defined as max virtual address. | |||||
/* 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) | ||||
/* If true addr is in the kernel address space */ | /* If true addr is in the kernel address space */ | ||||
#define ADDR_IS_KERNEL(addr) (((addr) & (1ul << 55)) == (1ul << 55)) | #define ADDR_IS_KERNEL(addr) (((addr) & (1ul << 55)) == (1ul << 55)) | ||||
/* If true addr is in its canonical form (i.e. no TBI, PAC, etc.) */ | /* If true addr is in its canonical form (i.e. no TBI, PAC, etc.) */ | ||||
#define ADDR_IS_CANONICAL(addr) \ | #define ADDR_IS_CANONICAL(addr) \ | ||||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |
I do not believe this is right. VM_MAX_ADDRESS seems to be defined as max virtual address. IMO it is simpler to explcitly write out .ffff..s.