Changeset 26280 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Feb 5, 2010 5:16:00 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/TRPMAll.cpp
r26271 r26280 450 450 pIDTEntry = (RTGCPTR)((RTGCUINTPTR)GCPtrIDT + sizeof(VBOXIDTE) * iGate); 451 451 #ifdef IN_RC 452 rc = MMGCRamRead(pVM, &GuestIdte, (void *) pIDTEntry, sizeof(GuestIdte));452 rc = MMGCRamRead(pVM, &GuestIdte, (void *)(uintptr_t)pIDTEntry, sizeof(GuestIdte)); 453 453 #else 454 454 rc = PGMPhysSimpleReadGCPtr(pVCpu, &GuestIdte, pIDTEntry, sizeof(GuestIdte)); … … 465 465 } 466 466 #ifdef IN_RC 467 rc = MMGCRamRead(pVM, &GuestIdte, (void *) pIDTEntry, sizeof(GuestIdte));467 rc = MMGCRamRead(pVM, &GuestIdte, (void *)(uintptr_t)pIDTEntry, sizeof(GuestIdte)); 468 468 #else 469 469 rc = PGMPhysSimpleReadGCPtr(pVCpu, &GuestIdte, pIDTEntry, sizeof(GuestIdte)); … … 510 510 pGdtEntry = gdtr.pGdt + (GuestIdte.Gen.u16SegSel >> X86_SEL_SHIFT) * sizeof(X86DESC); 511 511 #ifdef IN_RC 512 rc = MMGCRamRead(pVM, &Desc, (void *) pGdtEntry, sizeof(Desc));512 rc = MMGCRamRead(pVM, &Desc, (void *)(uintptr_t)pGdtEntry, sizeof(Desc)); 513 513 #else 514 514 rc = PGMPhysSimpleReadGCPtr(pVCpu, &Desc, pGdtEntry, sizeof(Desc)); … … 525 525 } 526 526 #ifdef IN_RC 527 rc = MMGCRamRead(pVM, &Desc, (void *) pGdtEntry, sizeof(Desc));527 rc = MMGCRamRead(pVM, &Desc, (void *)(uintptr_t)pGdtEntry, sizeof(Desc)); 528 528 #else 529 529 rc = PGMPhysSimpleReadGCPtr(pVCpu, &Desc, pGdtEntry, sizeof(Desc)); … … 589 589 /* Check maximum amount we need (10 when executing in V86 mode) */ 590 590 rc = PGMVerifyAccess(pVCpu, (RTGCUINTPTR)pTrapStackGC - 10*sizeof(uint32_t), 10 * sizeof(uint32_t), X86_PTE_RW); 591 pTrapStack = (uint32_t *) pTrapStackGC;591 pTrapStack = (uint32_t *)(uintptr_t)pTrapStackGC; 592 592 #else 593 593 Assert(eflags.Bits.u1VM || (pRegFrame->ss & X86_SEL_RPL) == 0 || (pRegFrame->ss & X86_SEL_RPL) == 3);
Note:
See TracChangeset
for help on using the changeset viewer.