Changeset 8528 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- May 2, 2008 7:09:28 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/memobj-r0drv-solaris.c
r8527 r8528 82 82 83 83 84 85 84 static uint64_t rtR0MemObjSolarisVirtToPhys(struct hat* hatSpace, caddr_t virtAddr) 86 85 { … … 93 92 } 94 93 95 /* Both works, but second will work for non-page aligned virtAddr */96 #if 097 uint64_t physAddr = PAGE_SIZE * pfn;98 #else99 94 uint64_t physAddr = ((uint64_t)pfn << MMU_PAGESHIFT) | ((uintptr_t)virtAddr & MMU_PAGEOFFSET); 100 #endif101 95 return physAddr; 102 96 } … … 318 312 pMemSolaris->ppShadowPages = ppl; 319 313 *ppMem = &pMemSolaris->Core; 320 return VINF_SUCCESS; 314 return VINF_SUCCESS; 321 315 } 322 316
Note:
See TracChangeset
for help on using the changeset viewer.