aboutsummaryrefslogtreecommitdiff
path: root/include/mach_debug/vm_info.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-28 22:25:59 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-28 22:32:18 +0200
commit247031c88d56028d8f6ea888bb28f20a96aafbc2 (patch)
treed18b1e2b7f9729b1f95b4c9da012ee84f6f36e1e /include/mach_debug/vm_info.h
parent8852aa3195cebbbcde50743ce4d8e8c85f32262c (diff)
downloadgnumach-247031c88d56028d8f6ea888bb28f20a96aafbc2.tar.gz
gnumach-247031c88d56028d8f6ea888bb28f20a96aafbc2.tar.bz2
gnumach-247031c88d56028d8f6ea888bb28f20a96aafbc2.zip
mach_vm_object_pages: Extend for PAE
Diffstat (limited to 'include/mach_debug/vm_info.h')
-rw-r--r--include/mach_debug/vm_info.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/mach_debug/vm_info.h b/include/mach_debug/vm_info.h
index 2c1b019f..cf45a2cc 100644
--- a/include/mach_debug/vm_info.h
+++ b/include/mach_debug/vm_info.h
@@ -117,6 +117,7 @@ typedef uint32_t vm_page_info_state_t;
#define VPI_STATE_PAGER 0x80000000 /* pager has the page */
+/* XXX: This structure holds a 32bit vpi_phys_addr. */
typedef struct vm_page_info {
rpc_vm_offset_t vpi_offset; /* offset in object */
rpc_vm_offset_t vpi_phys_addr; /* physical address */
@@ -128,4 +129,15 @@ typedef struct vm_page_info {
typedef vm_page_info_t *vm_page_info_array_t;
+typedef struct vm_page_phys_info {
+ rpc_vm_offset_t vpi_offset; /* offset in object */
+ rpc_phys_addr_t vpi_phys_addr; /* physical address */
+ unsigned int vpi_wire_count; /* number of times wired */
+ vm_prot_t vpi_page_lock; /* XP access restrictions */
+ vm_prot_t vpi_unlock_request; /* outstanding unlock requests */
+ vm_page_info_state_t vpi_state; /* random state bits */
+} vm_page_phys_info_t;
+
+typedef vm_page_phys_info_t *vm_page_phys_info_array_t;
+
#endif /* _MACH_DEBUG_VM_INFO_H_ */