From 0f9822d2ab9881ebb601b25ab3f381bbb6197b05 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 30 Jan 2024 19:58:18 +0100 Subject: Add vm_pages_phys For rumpdisk to efficiently determine the physical address, both for checking whether it is below 4GiB, and for giving it to the disk driver, we need a gnumach primitive (and that is not conditioned by MACH_VM_DEBUG like mach_vm_region_info and mach_vm_object_pages_phys are). --- i386/include/mach/i386/machine_types.defs | 1 + i386/include/mach/i386/vm_types.h | 1 + 2 files changed, 2 insertions(+) (limited to 'i386') diff --git a/i386/include/mach/i386/machine_types.defs b/i386/include/mach/i386/machine_types.defs index 3d540be9..76c7dcf9 100755 --- a/i386/include/mach/i386/machine_types.defs +++ b/i386/include/mach/i386/machine_types.defs @@ -102,5 +102,6 @@ type long_integer_t = rpc_long_integer_t * Physical address size */ type rpc_phys_addr_t = uint64_t; +type rpc_phys_addr_array_t = array[] of rpc_phys_addr_t; #endif /* _MACHINE_MACHINE_TYPES_DEFS_ */ diff --git a/i386/include/mach/i386/vm_types.h b/i386/include/mach/i386/vm_types.h index bd07ef26..8f528ae1 100644 --- a/i386/include/mach/i386/vm_types.h +++ b/i386/include/mach/i386/vm_types.h @@ -94,6 +94,7 @@ typedef unsigned long phys_addr_t; typedef unsigned long long phys_addr_t; #endif typedef unsigned long long rpc_phys_addr_t; +typedef rpc_phys_addr_t *rpc_phys_addr_array_t; /* * A vm_size_t is the proper type for e.g. -- cgit v1.2.3