Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/pmap.h
Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Flags for pmap_enter(). The bits in the low-order byte are reserved | * Flags for pmap_enter(). The bits in the low-order byte are reserved | ||||
* for the protection code (vm_prot_t) that describes the fault type. | * for the protection code (vm_prot_t) that describes the fault type. | ||||
* Bits 24 through 31 are reserved for the pmap's internal use. | * Bits 24 through 31 are reserved for the pmap's internal use. | ||||
*/ | */ | ||||
#define PMAP_ENTER_NOSLEEP 0x00000100 | #define PMAP_ENTER_NOSLEEP 0x00000100 | ||||
#define PMAP_ENTER_WIRED 0x00000200 | #define PMAP_ENTER_WIRED 0x00000200 | ||||
#define PMAP_ENTER_LARGEPAGE 0x00000400 | |||||
#define PMAP_ENTER_RESERVED 0xFF000000 | #define PMAP_ENTER_RESERVED 0xFF000000 | ||||
/* | /* | ||||
* Define the maximum number of machine-dependent reference bits that are | * Define the maximum number of machine-dependent reference bits that are | ||||
* cleared by a call to pmap_ts_referenced(). This limit serves two purposes. | * cleared by a call to pmap_ts_referenced(). This limit serves two purposes. | ||||
* First, it bounds the cost of reference bit maintenance on widely shared | * First, it bounds the cost of reference bit maintenance on widely shared | ||||
* pages. Second, it prevents numeric overflow during maintenance of a | * pages. Second, it prevents numeric overflow during maintenance of a | ||||
* widely shared page's "act_count" field. An overflow could result in the | * widely shared page's "act_count" field. An overflow could result in the | ||||
▲ Show 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
void pmap_sync_icache(pmap_t, vm_offset_t, vm_size_t); | void pmap_sync_icache(pmap_t, vm_offset_t, vm_size_t); | ||||
int pmap_ts_referenced(vm_page_t m); | int pmap_ts_referenced(vm_page_t m); | ||||
void pmap_unwire(pmap_t pmap, vm_offset_t start, vm_offset_t end); | void pmap_unwire(pmap_t pmap, vm_offset_t start, vm_offset_t end); | ||||
void pmap_zero_page(vm_page_t); | void pmap_zero_page(vm_page_t); | ||||
void pmap_zero_page_area(vm_page_t, int off, int size); | void pmap_zero_page_area(vm_page_t, int off, int size); | ||||
#define pmap_resident_count(pm) ((pm)->pm_stats.resident_count) | #define pmap_resident_count(pm) ((pm)->pm_stats.resident_count) | ||||
#define pmap_wired_count(pm) ((pm)->pm_stats.wired_count) | #define pmap_wired_count(pm) ((pm)->pm_stats.wired_count) | ||||
extern u_long pmap_superpagesize[]; | |||||
extern u_int pmap_superpagesize_nitems; | |||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* _PMAP_VM_ */ | #endif /* _PMAP_VM_ */ |