Changeset View
Changeset View
Standalone View
Standalone View
sys/riscv/include/vmparam.h
Show First 20 Lines • Show All 180 Lines • ▼ Show 20 Lines | |||||
}) | }) | ||||
#define VM_MIN_USER_ADDRESS (0x0000000000000000UL) | #define VM_MIN_USER_ADDRESS (0x0000000000000000UL) | ||||
#define VM_MAX_USER_ADDRESS (0x0000004000000000UL) | #define VM_MAX_USER_ADDRESS (0x0000004000000000UL) | ||||
#define VM_MINUSER_ADDRESS (VM_MIN_USER_ADDRESS) | #define VM_MINUSER_ADDRESS (VM_MIN_USER_ADDRESS) | ||||
#define VM_MAXUSER_ADDRESS (VM_MAX_USER_ADDRESS) | #define VM_MAXUSER_ADDRESS (VM_MAX_USER_ADDRESS) | ||||
/* Check if an address resides in a mappable region. */ | |||||
#define VIRT_IS_VALID(va) \ | |||||
(((va) < VM_MAX_USER_ADDRESS) || ((va) >= VM_MIN_KERNEL_ADDRESS)) | |||||
#define KERNBASE (VM_MIN_KERNEL_ADDRESS) | #define KERNBASE (VM_MIN_KERNEL_ADDRESS) | ||||
#define SHAREDPAGE (VM_MAXUSER_ADDRESS - PAGE_SIZE) | #define SHAREDPAGE (VM_MAXUSER_ADDRESS - PAGE_SIZE) | ||||
#define USRSTACK SHAREDPAGE | #define USRSTACK SHAREDPAGE | ||||
#define VM_EARLY_DTB_ADDRESS (VM_MAX_KERNEL_ADDRESS - (2 * L2_SIZE)) | #define VM_EARLY_DTB_ADDRESS (VM_MAX_KERNEL_ADDRESS - (2 * L2_SIZE)) | ||||
/* | /* | ||||
* How many physical pages per kmem arena virtual page. | * How many physical pages per kmem arena virtual page. | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |