Changeset View
Changeset View
Standalone View
Standalone View
sys/riscv/include/pmap.h
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* 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) \ | ||||
((((va) | (pa)) & L1_OFFSET) == 0 && (size) >= L1_SIZE) | ((((va) | (pa)) & L1_OFFSET) == 0 && (size) >= L1_SIZE) | ||||
enum pmap_mode { | |||||
PMAP_MODE_SV39, | |||||
PMAP_MODE_SV48, | |||||
}; | |||||
extern enum pmap_mode pmap_mode; | |||||
struct thread; | struct thread; | ||||
#define pmap_vm_page_alloc_check(m) | #define pmap_vm_page_alloc_check(m) | ||||
void pmap_activate_boot(pmap_t); | void pmap_activate_boot(pmap_t); | ||||
void pmap_activate_sw(struct thread *); | void pmap_activate_sw(struct thread *); | ||||
void pmap_bootstrap(vm_offset_t, vm_paddr_t, vm_size_t); | void pmap_bootstrap(vm_offset_t, vm_paddr_t, vm_size_t); | ||||
int pmap_change_attr(vm_offset_t va, vm_size_t size, int mode); | int pmap_change_attr(vm_offset_t va, vm_size_t size, int mode); | ||||
Show All 34 Lines |