Changeset 2300 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Apr 21, 2007 12:20:10 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/SELMAll.cpp
r2267 r2300 111 111 if (!CPUMAreHiddenSelRegsValid(pVM)) 112 112 return selmToFlat(pVM, Sel, Addr); 113 else 114 return (RTGCPTR)(pHiddenSel->u32Base + (RTGCUINTPTR)Addr); 113 return (RTGCPTR)(pHiddenSel->u32Base + (RTGCUINTPTR)Addr); 115 114 } 116 115 … … 189 188 190 189 /** @todo handle LDT page(s) not present! */ 191 190 #ifdef IN_GC 192 191 PVBOXDESC paLDT = (PVBOXDESC)((char *)pVM->selm.s.GCPtrLdt + pVM->selm.s.offLdtHyper); 193 192 #else 194 193 PVBOXDESC paLDT = (PVBOXDESC)((char *)pVM->selm.s.HCPtrLdt + pVM->selm.s.offLdtHyper); 195 194 #endif 196 195 Desc = paLDT[Sel >> X86_SEL_SHIFT]; 197 196 } … … 223 222 * Type check. 224 223 */ 225 224 #define BOTH(a, b) ((a << 16) | b) 226 225 switch (BOTH(u1DescType, u4Type)) 227 226 { … … 319 318 320 319 } 321 320 #undef BOTH 322 321 } 323 322 return VERR_SELECTOR_NOT_PRESENT; … … 347 346 { 348 347 /** @todo handle LDT page(s) not present! */ 349 348 #ifdef IN_GC 350 349 PVBOXDESC paLDT = (PVBOXDESC)((char *)pVM->selm.s.GCPtrLdt + pVM->selm.s.offLdtHyper); 351 350 #else 352 351 PVBOXDESC paLDT = (PVBOXDESC)((char *)pVM->selm.s.HCPtrLdt + pVM->selm.s.offLdtHyper); 353 352 #endif 354 353 Desc = paLDT[SelCS >> X86_SEL_SHIFT]; 355 354 }
Note:
See TracChangeset
for help on using the changeset viewer.