Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/include/pmap.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
#include <sys/_mutex.h> | #include <sys/_mutex.h> | ||||
#include <vm/_vm_radix.h> | #include <vm/_vm_radix.h> | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#define vtophys(va) pmap_kextract((vm_offset_t)(va)) | #define vtophys(va) pmap_kextract((vm_offset_t)(va)) | ||||
#endif | |||||
#define pmap_page_get_memattr(m) ((m)->md.pv_memattr) | #define pmap_page_get_memattr(m) ((m)->md.pv_memattr) | ||||
#define pmap_page_is_write_mapped(m) (((m)->aflags & PGA_WRITEABLE) != 0) | #define pmap_page_is_write_mapped(m) (((m)->aflags & PGA_WRITEABLE) != 0) | ||||
void pmap_page_set_memattr(vm_page_t m, vm_memattr_t ma); | void pmap_page_set_memattr(vm_page_t m, vm_memattr_t ma); | ||||
/* | /* | ||||
* Pmap stuff | * Pmap stuff | ||||
*/ | */ | ||||
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; | ||||
}; | }; | ||||
#endif /* _KERNEL */ | |||||
/* | /* | ||||
* This structure is used to hold a virtual<->physical address | * This structure is used to hold a virtual<->physical address | ||||
* association and is used mostly by bootstrap code | * association and is used mostly by bootstrap code | ||||
*/ | */ | ||||
struct pv_addr { | struct pv_addr { | ||||
SLIST_ENTRY(pv_addr) pv_list; | SLIST_ENTRY(pv_addr) pv_list; | ||||
vm_offset_t pv_va; | vm_offset_t pv_va; | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |