- Timestamp:
- Mar 5, 2007 6:10:30 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 19173
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/MMAll.cpp
r1237 r1238 28 28 #include "MMInternal.h" 29 29 #include <VBox/vm.h> 30 #include <VBox/log.h> 30 31 #include <iprt/assert.h> 31 32 … … 108 109 /** @todo fix this properly; the ring 0 pVM address differs from the R3 one. */ 109 110 if (R0Ptr >= pVM->pVMR0 && (RTR0UINTREG)R0Ptr < (RTR0UINTREG)pVM->pVMR0 + sizeof(*pVM)) 110 R3Ptr = (RTR3PTR)((RTR0UINTREG)R0Ptr - (RTR0UINTREG)pVM + (RTR0UINTREG)pVM->pVMR3);111 R3Ptr = (RTR3PTR)((RTR0UINTREG)R0Ptr - (RTR0UINTREG)pVM->pVMR0 + (RTR0UINTREG)pVM->pVMR3); 111 112 else 112 113 R3Ptr = (RTR3PTR)R0Ptr;
Note:
See TracChangeset
for help on using the changeset viewer.