Changeset 91785 in vbox for trunk/src/VBox/HostDrivers/Support/freebsd
- Timestamp:
- Oct 17, 2021 1:35:07 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 147571
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c
r90780 r91785 45 45 #include <sys/conf.h> 46 46 #include <sys/uio.h> 47 #include <vm/pmap.h> /* for pmap_map() */ 47 48 48 49 #include "../SUPDrvInternal.h" … … 638 639 639 640 641 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_ARM64) 642 SUPR0DECL(int) SUPR0HCPhysToVirt(RTHCPHYS HCPhys, void **ppv) 643 { 644 AssertReturn(!(HCPhys & PAGE_OFFSET_MASK), VERR_INVALID_POINTER); 645 AssertReturn(HCPhys != NIL_RTHCPHYS, VERR_INVALID_POINTER); 646 *ppv = (void *)(uintptr_t)pmap_map(NULL, HCPhys, (HCPhys | PAGE_OFFSET_MASK) + 1, VM_PROT_WRITE | VM_PROT_READ); 647 return VINF_SUCCESS; 648 } 649 #endif 650 651 640 652 SUPR0DECL(int) SUPR0Printf(const char *pszFormat, ...) 641 653 {
Note:
See TracChangeset
for help on using the changeset viewer.