Changeset View
Changeset View
Standalone View
Standalone View
sys/riscv/include/pmap.h
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
struct md_page { | struct md_page { | ||||
TAILQ_HEAD(,pv_entry) pv_list; | TAILQ_HEAD(,pv_entry) pv_list; | ||||
int pv_gen; | int pv_gen; | ||||
vm_memattr_t pv_memattr; | vm_memattr_t pv_memattr; | ||||
}; | }; | ||||
/* | |||||
* This structure is used to hold a virtual<->physical address | |||||
* association and is used mostly by bootstrap code | |||||
*/ | |||||
struct pv_addr { | |||||
SLIST_ENTRY(pv_addr) pv_list; | |||||
vm_offset_t pv_va; | |||||
vm_paddr_t pv_pa; | |||||
}; | |||||
struct pmap { | struct pmap { | ||||
struct mtx pm_mtx; | struct mtx pm_mtx; | ||||
struct pmap_statistics pm_stats; /* pmap statictics */ | struct pmap_statistics pm_stats; /* pmap statictics */ | ||||
pd_entry_t *pm_top; /* top-level page table page */ | pd_entry_t *pm_top; /* top-level page table page */ | ||||
u_long pm_satp; /* value for SATP register */ | u_long pm_satp; /* value for SATP register */ | ||||
cpuset_t pm_active; /* active on cpus */ | cpuset_t pm_active; /* active on cpus */ | ||||
TAILQ_HEAD(,pv_chunk) pm_pvchunk; /* list of mappings in pmap */ | TAILQ_HEAD(,pv_chunk) pm_pvchunk; /* list of mappings in pmap */ | ||||
LIST_ENTRY(pmap) pm_list; /* List of all pmaps */ | LIST_ENTRY(pmap) pm_list; /* List of all pmaps */ | ||||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |