Changeset 9282 in vbox for trunk/src/VBox
- Timestamp:
- Jun 2, 2008 8:36:10 AM (17 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/IOMInternal.h
r9212 r9282 428 428 * @param pvUser Pointer to the MMIO range entry. 429 429 */ 430 IOMDECL(int) IOMMMIOHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, void *pvFault, RTGCPHYS GCPhysFault, void *pvUser);430 IOMDECL(int) IOMMMIOHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPHYS GCPhysFault, void *pvUser); 431 431 432 432 /** -
trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp
r9212 r9282 942 942 * @param pvUser Pointer to the MMIO ring-3 range entry. 943 943 */ 944 IOMDECL(int) IOMMMIOHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pCtxCore, void *pvFault, RTGCPHYS GCPhysFault, void *pvUser)944 IOMDECL(int) IOMMMIOHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pCtxCore, RTGCPTR pvFault, RTGCPHYS GCPhysFault, void *pvUser) 945 945 { 946 946 STAM_PROFILE_START(&pVM->iom.s.StatGCMMIOHandler, a); 947 Log3(("IOMMMIOHandler: GCPhys=%RGp uErr=%#x pvFault=% peip=%RGv\n",948 GCPhysFault, uErrorCode, pvFault, pCtxCore->eip));947 Log3(("IOMMMIOHandler: GCPhys=%RGp uErr=%#x pvFault=%VGv eip=%RGv\n", 948 GCPhysFault, (uint32_t)uErrorCode, pvFault, pCtxCore->eip)); 949 949 950 950 PIOMMMIORANGE pRange = (PIOMMMIORANGE)pvUser; -
trunk/src/VBox/VMM/VMMAll/PGMAll.cpp
r9064 r9282 299 299 PGMDECL(int) PGMTrap0eHandler(PVM pVM, RTGCUINT uErr, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault) 300 300 { 301 LogFlow(("PGMTrap0eHandler: uErr=%#x pvFault=%VGv eip=%VGv\n", uErr, pvFault, pRegFrame->eip));301 LogFlow(("PGMTrap0eHandler: uErr=%#x pvFault=%VGv eip=%VGv\n", (uint32_t)uErr, pvFault, pRegFrame->eip)); 302 302 STAM_PROFILE_START(&pVM->pgm.s.StatGCTrap0e, a); 303 303 STAM_STATS({ pVM->pgm.s.CTXSUFF(pStatTrap0eAttribution) = NULL; } ); -
trunk/src/VBox/VMM/VMMGC/MMRamGC.cpp
r9212 r9282 138 138 * And mark the relevant guest page as accessed and dirty. 139 139 */ 140 PGMGstModifyPage(pVM, (RTGCPTR) pDst, cb, X86_PTE_A | X86_PTE_D, ~(uint64_t)(X86_PTE_A | X86_PTE_D));140 PGMGstModifyPage(pVM, (RTGCPTR)(RTRCUINTPTR)pDst, cb, X86_PTE_A | X86_PTE_D, ~(uint64_t)(X86_PTE_A | X86_PTE_D)); 141 141 142 142 return rc; -
trunk/src/VBox/VMM/VMMGC/SELMGC.cpp
r9212 r9282 205 205 /** @todo should check if any affected selectors are loaded. */ 206 206 uint32_t cb; 207 rc = EMInterpretInstruction(pVM, pRegFrame, (RTGCPTR) pvFault, &cb);207 rc = EMInterpretInstruction(pVM, pRegFrame, (RTGCPTR)(RTRCUINTPTR)pvFault, &cb); 208 208 if (VBOX_SUCCESS(rc) && cb) 209 209 { … … 291 291 */ 292 292 uint32_t cb; 293 int rc = EMInterpretInstruction(pVM, pRegFrame, (RTGCPTR) pvFault, &cb);293 int rc = EMInterpretInstruction(pVM, pRegFrame, (RTGCPTR)(RTRCUINTPTR)pvFault, &cb); 294 294 if (VBOX_SUCCESS(rc) && cb) 295 295 { … … 321 321 { 322 322 /* Shadow page table might be out of sync */ 323 rc = PGMPrefetchPage(pVM, (RTGCPTR)( (uint8_t *)pGuestTSS + offIntRedirBitmap + i*8));323 rc = PGMPrefetchPage(pVM, (RTGCPTR)(RTRCUINTPTR)((uint8_t *)pGuestTSS + offIntRedirBitmap + i*8)); 324 324 if (VBOX_FAILURE(rc)) 325 325 { … … 440 440 /** @todo might cross page boundary */ 441 441 fTriedAlready = true; 442 rc = PGMPrefetchPage(pVM, (RTGCPTR) GCPtrTss);442 rc = PGMPrefetchPage(pVM, (RTGCPTR)(RTRCUINTPTR)GCPtrTss); 443 443 if (rc != VINF_SUCCESS) 444 444 return rc; -
trunk/src/VBox/VMM/VMMGC/TRPMGC.cpp
r9223 r9282 115 115 116 116 AssertMsg(offRange < (uint32_t)cbIDT+1, ("pvFault=%VGv GCPtrIDT=%VGv-%VGv pvRange=%VGv\n", pvFault, GCPtrIDT, GCPtrIDTEnd, pvRange)); 117 Assert((RTGCPTR) pvRange == GCPtrIDT);117 Assert((RTGCPTR)(RTRCUINTPTR)pvRange == GCPtrIDT); 118 118 119 119 #if 0 -
trunk/src/VBox/VMM/VMMGC/TRPMGCHandlers.cpp
r9231 r9282 467 467 * accessing user code. need to handle it somehow in future! 468 468 */ 469 uint8_t *pu8Code; 470 if (SELMValidateAndConvertCSAddr(pVM, pRegFrame->eflags, pRegFrame->ss, pRegFrame->cs, &pRegFrame->csHid, (RTGCPTR)pRegFrame->eip, (PRTGCPTR)&pu8Code) == VINF_SUCCESS) 471 { 469 RTGCPTR GCPtr; 470 if (SELMValidateAndConvertCSAddr(pVM, pRegFrame->eflags, pRegFrame->ss, pRegFrame->cs, &pRegFrame->csHid, (RTGCPTR)pRegFrame->eip, &GCPtr) == VINF_SUCCESS) 471 { 472 uint8_t *pu8Code = (uint8_t *)GCPtr; 472 473 /* 473 474 * First skip possible instruction prefixes, such as:
Note:
See TracChangeset
for help on using the changeset viewer.