Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/include/pmap.h
Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | |||||
#define ASID_RESERVED_FOR_EFI 1 | #define ASID_RESERVED_FOR_EFI 1 | ||||
#define ASID_FIRST_AVAILABLE (ASID_RESERVED_FOR_EFI + 1) | #define ASID_FIRST_AVAILABLE (ASID_RESERVED_FOR_EFI + 1) | ||||
#define ASID_TO_OPERAND_SHIFT 48 | #define ASID_TO_OPERAND_SHIFT 48 | ||||
#define ASID_TO_OPERAND(asid) ({ \ | #define ASID_TO_OPERAND(asid) ({ \ | ||||
KASSERT((asid) != -1, ("invalid ASID")); \ | KASSERT((asid) != -1, ("invalid ASID")); \ | ||||
(uint64_t)(asid) << ASID_TO_OPERAND_SHIFT; \ | (uint64_t)(asid) << ASID_TO_OPERAND_SHIFT; \ | ||||
}) | }) | ||||
#define PMAP_WANT_ACTIVE_CPUS_NAIVE | |||||
extern vm_offset_t virtual_avail; | extern vm_offset_t virtual_avail; | ||||
extern vm_offset_t virtual_end; | extern vm_offset_t virtual_end; | ||||
/* | /* | ||||
* Macros to test if a mapping is mappable with an L1 Section mapping | * Macros to test if a mapping is mappable with an L1 Section mapping | ||||
* or an L2 Large Page mapping. | * or an L2 Large Page mapping. | ||||
*/ | */ | ||||
#define L1_MAPPABLE_P(va, pa, size) \ | #define L1_MAPPABLE_P(va, pa, size) \ | ||||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |