Changeset 13045 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Oct 7, 2008 1:04:43 PM (16 years ago)
- Location:
- trunk/src/VBox/VMM/VMMAll
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllBth.h
r13042 r13045 280 280 # ifdef IN_GC 281 281 STAM_PROFILE_START(&pCur->Stat, h); 282 rc = CTXSUFF(pCur->pfnHandler)(pVM, uErr, pRegFrame, pvFault, pCur->GCPtr, (RTGCUINTPTR)pvFault - (RTGCUINTPTR)pCur->GCPtr);282 rc = pCur->CTX_SUFF(pfnHandler)(pVM, uErr, pRegFrame, pvFault, pCur->GCPtr, (RTGCUINTPTR)pvFault - (RTGCUINTPTR)pCur->GCPtr); 283 283 STAM_PROFILE_STOP(&pCur->Stat, h); 284 284 # else … … 460 460 # ifdef IN_GC 461 461 STAM_PROFILE_START(&pCur->Stat, h); 462 rc = CTXSUFF(pCur->pfnHandler)(pVM, uErr, pRegFrame, pvFault, pCur->GCPtr, (RTGCUINTPTR)pvFault - (RTGCUINTPTR)pCur->GCPtr);462 rc = pCur->CTX_SUFF(pfnHandler)(pVM, uErr, pRegFrame, pvFault, pCur->GCPtr, (RTGCUINTPTR)pvFault - (RTGCUINTPTR)pCur->GCPtr); 463 463 STAM_PROFILE_STOP(&pCur->Stat, h); 464 464 # else … … 489 489 Assert(off < pCur->cb); 490 490 STAM_PROFILE_START(&pCur->Stat, h); 491 rc = CTXSUFF(pCur->pfnHandler)(pVM, uErr, pRegFrame, pvFault, pCur->GCPtr, off);491 rc = pCur->CTX_SUFF(pfnHandler)(pVM, uErr, pRegFrame, pvFault, pCur->GCPtr, off); 492 492 STAM_PROFILE_STOP(&pCur->Stat, h); 493 493 # else … … 567 567 # ifdef IN_GC 568 568 STAM_PROFILE_START(&pCur->Stat, h); 569 rc = CTXSUFF(pCur->pfnHandler)(pVM, uErr, pRegFrame, pvFault, pCur->GCPtr, (RTGCUINTPTR)pvFault - (RTGCUINTPTR)pCur->GCPtr);569 rc = pCur->CTX_SUFF(pfnHandler)(pVM, uErr, pRegFrame, pvFault, pCur->GCPtr, (RTGCUINTPTR)pvFault - (RTGCUINTPTR)pCur->GCPtr); 570 570 STAM_PROFILE_STOP(&pCur->Stat, h); 571 571 # else -
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r13040 r13045 1250 1250 unsigned iPage; 1251 1251 int rc2 = pgmHandlerVirtualFindByPhysAddr(pVM, GCPhys, &pNode, &iPage); 1252 if (VBOX_SUCCESS(rc2) && pNode->pfnHandler HC)1252 if (VBOX_SUCCESS(rc2) && pNode->pfnHandlerR3) 1253 1253 { 1254 1254 size_t cbRange = pNode->Core.KeyLast - GCPhys + 1; … … 1262 1262 void *pvSrc = PGMRAMRANGE_GETHCPTR(pRam, off) 1263 1263 1264 /* * @noteDangerous assumption that HC handlers don't do anything that really requires an EMT lock! */1265 rc = pNode->pfnHandler HC(pVM, (RTGCPTR)GCPtr, pvSrc, pvBuf, cb, PGMACCESSTYPE_READ, 0);1264 /* Note: Dangerous assumption that HC handlers don't do anything that really requires an EMT lock! */ 1265 rc = pNode->pfnHandlerR3(pVM, (RTGCPTR)GCPtr, pvSrc, pvBuf, cb, PGMACCESSTYPE_READ, 0); 1266 1266 } 1267 1267 #endif /* IN_RING3 */ … … 1491 1491 void *pvDst = PGMRAMRANGE_GETHCPTR(pRam, off) 1492 1492 1493 /* * @note Dangerous assumption that HChandlers don't do anything that really requires an EMT lock! */1493 /* Note! Dangerous assumption that R3 handlers don't do anything that really requires an EMT lock! */ 1494 1494 rc = pPhysNode->pfnHandlerR3(pVM, GCPhys, pvDst, (void *)pvBuf, cb, PGMACCESSTYPE_WRITE, pPhysNode->pvUserR3); 1495 1495 } … … 1499 1499 unsigned iPage; 1500 1500 int rc2 = pgmHandlerVirtualFindByPhysAddr(pVM, GCPhys, &pVirtNode, &iPage); 1501 if (VBOX_SUCCESS(rc2) && pVirtNode->pfnHandler HC)1501 if (VBOX_SUCCESS(rc2) && pVirtNode->pfnHandlerR3) 1502 1502 { 1503 1503 size_t cbRange = pVirtNode->Core.KeyLast - GCPhys + 1; … … 1511 1511 void *pvDst = PGMRAMRANGE_GETHCPTR(pRam, off) 1512 1512 1513 /* * @note Dangerous assumption that HChandlers don't do anything that really requires an EMT lock! */1514 rc2 = pVirtNode->pfnHandler HC(pVM, (RTGCPTR)GCPtr, pvDst, (void *)pvBuf, cb, PGMACCESSTYPE_WRITE, 0);1513 /* Note! Dangerous assumption that R3 handlers don't do anything that really requires an EMT lock! */ 1514 rc2 = pVirtNode->pfnHandlerR3(pVM, (RTGCPTR)GCPtr, pvDst, (void *)pvBuf, cb, PGMACCESSTYPE_WRITE, 0); 1515 1515 if ( ( rc2 != VINF_PGM_HANDLER_DO_DEFAULT 1516 1516 && rc == VINF_PGM_HANDLER_DO_DEFAULT) … … 1549 1549 unsigned iPage; 1550 1550 int rc2 = pgmHandlerVirtualFindByPhysAddr(pVM, GCPhys, &pNode, &iPage); 1551 if (VBOX_SUCCESS(rc2) && pNode->pfnHandler HC)1551 if (VBOX_SUCCESS(rc2) && pNode->pfnHandlerR3) 1552 1552 { 1553 1553 size_t cbRange = pNode->Core.KeyLast - GCPhys + 1; … … 1561 1561 void *pvDst = PGMRAMRANGE_GETHCPTR(pRam, off) 1562 1562 1563 /* * @tode Dangerous assumption that HChandlers don't do anything that really requires an EMT lock! */1564 rc = pNode->pfnHandler HC(pVM, (RTGCPTR)GCPtr, pvDst, (void *)pvBuf, cb, PGMACCESSTYPE_WRITE, 0);1563 /* Note! Dangerous assumption that R3 handlers don't do anything that really requires an EMT lock! */ 1564 rc = pNode->pfnHandlerR3(pVM, (RTGCPTR)GCPtr, pvDst, (void *)pvBuf, cb, PGMACCESSTYPE_WRITE, 0); 1565 1565 } 1566 1566 #endif /* IN_RING3 */
Note:
See TracChangeset
for help on using the changeset viewer.