Changeset 82590 in vbox for trunk/src/VBox/HostDrivers/Support/solaris
- Timestamp:
- Dec 16, 2019 5:48:40 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 135475
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/solaris/SUPDrv-solaris.c
r76553 r82590 46 46 #include <sys/file.h> 47 47 #include <sys/priv_names.h> 48 #include <vm/hat.h> 48 49 #undef u /* /usr/include/sys/user.h:249:1 is where this is defined to (curproc->p_user). very cool. */ 49 50 … … 64 65 65 66 #include "dtrace/SUPDrv.h" 67 68 extern "C" caddr_t hat_kpm_pfn2va(pfn_t); /* Found in vm/hat.h on solaris 11.3, but not on older like 10u7. */ 66 69 67 70 … … 1277 1280 1278 1281 1282 SUPR0DECL(int) SUPR0HCPhysToVirt(RTHCPHYS HCPhys, void **ppv) 1283 { 1284 AssertReturn(!(HCPhys & PAGE_OFFSET_MASK), VERR_INVALID_POINTER); 1285 AssertReturn(HCPhys != NIL_RTHCPHYS, VERR_INVALID_POINTER); 1286 HCPhys >>= PAGE_SHIFT; 1287 AssertReturn(HCPhys <= physmax, VERR_INVALID_POINTER); 1288 *ppv = hat_kpm_pfn2va(HCPhys); 1289 return VINF_SUCCESS; 1290 } 1291 1292 1279 1293 RTDECL(int) SUPR0Printf(const char *pszFormat, ...) 1280 1294 {
Note:
See TracChangeset
for help on using the changeset viewer.