VirtualBox

Changeset 138 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jan 18, 2007 2:59:18 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
17589
Message:

64-bit

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllHandler.cpp

    r23 r138  
    10611061    if (Cpu.mode == CPUMODE_32BIT)
    10621062    {
    1063         uint8_t *pu8Code;
    1064         int rc = SELMValidateAndConvertCSAddr(pVM, pRegFrame->ss, pRegFrame->cs, &pRegFrame->csHid, (RTGCPTR)pRegFrame->eip, (PRTGCPTR)&pu8Code);
     1063        RTGCPTR GCPtrCode;
     1064        int rc = SELMValidateAndConvertCSAddr(pVM, pRegFrame->ss, pRegFrame->cs, &pRegFrame->csHid, (RTGCPTR)pRegFrame->eip, &GCPtrCode);
    10651065        if (VBOX_SUCCESS(rc))
    10661066        {
    10671067            uint32_t cbOp;
    1068             rc = pgmDisCoreOne(pVM, &Cpu, (RTGCUINTPTR)pu8Code, &cbOp);
     1068            rc = pgmDisCoreOne(pVM, &Cpu, (RTGCUINTPTR)GCPtrCode, &cbOp);
    10691069            if (VBOX_SUCCESS(rc))
    10701070            {
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r23 r138  
    255255{
    256256    int         rc;
    257     uint32_t    iGate    = VMX_EXIT_INTERRUPTION_INFO_VECTOR(intInfo);
    258257
    259258#ifdef VBOX_STRICT
     259    uint32_t    iGate = VMX_EXIT_INTERRUPTION_INFO_VECTOR(intInfo);
    260260    if (iGate == 0xE)
    261261        Log2(("VMXR0InjectEvent: Injecting interrupt %d at %VGv error code=%08x CR2=%08x intInfo=%08x\n", iGate, pCtx->eip, errCode, pCtx->cr2, intInfo));
     
    481481        rc |= VMXWriteVMCS(VMX_VMCS_HOST_GS_BASE,           0);
    482482#else
    483         rc  = VMXWriteVMCS64(VMX_VMCS_HOST_FS_BASE,           ASMRdMsr(MSR_IA32_FS_BASE));
    484         rc |= VMXWriteVMCS64(VMX_VMCS_HOST_GS_BASE,           ASMRdMsr(MSR_IA32_GS_BASE));
     483        rc  = VMXWriteVMCS64(VMX_VMCS_HOST_FS_BASE,           ASMRdMsr(MSR_K8_FS_BASE));
     484        rc |= VMXWriteVMCS64(VMX_VMCS_HOST_GS_BASE,           ASMRdMsr(MSR_K8_GS_BASE));
    485485#endif
    486486        AssertRC(rc);
     
    764764{
    765765    int         rc = VINF_SUCCESS;
    766     RTGCUINTPTR val, valShadow;
    767     RTGCUINTPTR exitReason, instrError, cbInstr, exitQualification;
    768     RTGCUINTPTR intInfo, errCode, instrInfo, uInterruptState;
     766    RTCCUINTREG val, valShadow;
     767    RTCCUINTREG exitReason, instrError, cbInstr;
     768    RTGCUINTPTR exitQualification;
     769    RTGCUINTPTR intInfo = 0; /* shut up buggy gcc 4 */
     770    RTGCUINTPTR errCode, instrInfo, uInterruptState;
    769771
    770772    Log2(("\nE"));
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette