Changeset 2816 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- May 23, 2007 3:09:44 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r2811 r2816 494 494 } 495 495 496 pDesc = &((PX86DESCHC)gdtr.pGdt)[SelTR >> X86_SEL_SHIFT]; 496 pDesc = &((PX86DESCHC)gdtr.pGdt)[SelTR >> X86_SEL_SHIFT_HC]; 497 #if HC_ARCH_BITS == 64 498 trBase = pDesc->Gen.u16BaseLow | (pDesc->Gen.u8BaseHigh1 << 16ULL) | (pDesc->Gen.u8BaseHigh2 << 24ULL) | pDesc->Gen.u32BaseHigh3 << 32ULL; 499 #else 497 500 trBase = pDesc->Gen.u16BaseLow | (pDesc->Gen.u8BaseHigh1 << 16) | (pDesc->Gen.u8BaseHigh2 << 24); 501 #endif 498 502 rc = VMXWriteVMCS(VMX_VMCS_HOST_TR_BASE, trBase); 499 503 AssertRC(rc); … … 1048 1052 if (val < gdtr.cbGdt) 1049 1053 { 1050 pDesc = &((PX86DESCHC)gdtr.pGdt)[val >> X86_SEL_SHIFT ];1054 pDesc = &((PX86DESCHC)gdtr.pGdt)[val >> X86_SEL_SHIFT_HC]; 1051 1055 HWACCMR0DumpDescriptor(pDesc, val, "CS: "); 1052 1056 } … … 1056 1060 if (val < gdtr.cbGdt) 1057 1061 { 1058 pDesc = &((PX86DESCHC)gdtr.pGdt)[val >> X86_SEL_SHIFT ];1062 pDesc = &((PX86DESCHC)gdtr.pGdt)[val >> X86_SEL_SHIFT_HC]; 1059 1063 HWACCMR0DumpDescriptor(pDesc, val, "DS: "); 1060 1064 } … … 1064 1068 if (val < gdtr.cbGdt) 1065 1069 { 1066 pDesc = &((PX86DESCHC)gdtr.pGdt)[val >> X86_SEL_SHIFT ];1070 pDesc = &((PX86DESCHC)gdtr.pGdt)[val >> X86_SEL_SHIFT_HC]; 1067 1071 HWACCMR0DumpDescriptor(pDesc, val, "ES: "); 1068 1072 } … … 1072 1076 if (val < gdtr.cbGdt) 1073 1077 { 1074 pDesc = &((PX86DESCHC)gdtr.pGdt)[val >> X86_SEL_SHIFT ];1078 pDesc = &((PX86DESCHC)gdtr.pGdt)[val >> X86_SEL_SHIFT_HC]; 1075 1079 HWACCMR0DumpDescriptor(pDesc, val, "FS: "); 1076 1080 } … … 1080 1084 if (val < gdtr.cbGdt) 1081 1085 { 1082 pDesc = &((PX86DESCHC)gdtr.pGdt)[val >> X86_SEL_SHIFT ];1086 pDesc = &((PX86DESCHC)gdtr.pGdt)[val >> X86_SEL_SHIFT_HC]; 1083 1087 HWACCMR0DumpDescriptor(pDesc, val, "GS: "); 1084 1088 } … … 1088 1092 if (val < gdtr.cbGdt) 1089 1093 { 1090 pDesc = &((PX86DESCHC)gdtr.pGdt)[val >> X86_SEL_SHIFT ];1094 pDesc = &((PX86DESCHC)gdtr.pGdt)[val >> X86_SEL_SHIFT_HC]; 1091 1095 HWACCMR0DumpDescriptor(pDesc, val, "SS: "); 1092 1096 } … … 1096 1100 if (val < gdtr.cbGdt) 1097 1101 { 1098 pDesc = &((PX86DESCHC)gdtr.pGdt)[val >> X86_SEL_SHIFT ];1102 pDesc = &((PX86DESCHC)gdtr.pGdt)[val >> X86_SEL_SHIFT_HC]; 1099 1103 HWACCMR0DumpDescriptor(pDesc, val, "TR: "); 1100 1104 }
Note:
See TracChangeset
for help on using the changeset viewer.