Changeset 4212 in vbox
- Timestamp:
- Aug 18, 2007 1:35:13 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/selm.h
r4071 r4212 257 257 SELMDECL(int) SELMSelInfoValidateCS(PCSELMSELINFO pSelInfo, RTSEL SelCPL); 258 258 259 /** @def SELMSelInfoIsExpandDown 260 * Tests whether the selector info describes an expand-down selector or now. 261 * 262 * @returns true / false. 263 * @param pSelInfo The selector info. 264 * 265 * @remark Realized as a macro for reasons of speed/lazyness and to avoid 266 * dragging in VBox/x86.h for now. 267 */ 268 #define SELMSelInfoIsExpandDown(pSelInfo) \ 269 ( (pSelInfo)->Raw.Gen.u1DescType \ 270 && ((pSelInfo)->Raw.Gen.u4Type & (X86_SEL_TYPE_DOWN | X86_SEL_TYPE_CODE)) == X86_SEL_TYPE_DOWN) 271 259 272 260 273 -
trunk/src/VBox/Debugger/DBGConsole.cpp
r4210 r4212 1 /** $Id$ */ 1 2 /** @file 2 * 3 * Debugger Console. 3 * DBGC - Debugger Console. 4 4 */ 5 5 … … 6235 6235 if (VBOX_SUCCESS(rc)) 6236 6236 { 6237 RTGCUINTPTR cb; 6238 /** @todo Add SELMSelInfoIsExpandDown() */ 6239 if ( (SelInfo.Raw.Gen.u4Type & X86_SEL_TYPE_DOWN) 6240 && SelInfo.Raw.Gen.u1DescType 6241 && ( SelInfo.Raw.Gen.u4Type == X86_SEL_TYPE_RO_DOWN 6242 || SelInfo.Raw.Gen.u4Type == X86_SEL_TYPE_RO_DOWN_ACC 6243 || SelInfo.Raw.Gen.u4Type == X86_SEL_TYPE_RW_DOWN 6244 || SelInfo.Raw.Gen.u4Type == X86_SEL_TYPE_RW_DOWN_ACC)) 6237 RTGCUINTPTR cb; /* -1 byte */ 6238 if (SELMSelInfoIsExpandDown(&SelInfo)) 6245 6239 { 6246 6240 if ( !SelInfo.Raw.Gen.u1Granularity … … 6253 6247 else 6254 6248 { 6255 if (Address.off > =SelInfo.cbLimit)6249 if (Address.off > SelInfo.cbLimit) 6256 6250 return VERR_OUT_OF_SELECTOR_BOUNDS; 6257 6251 cb = SelInfo.cbLimit - Address.off; … … 6261 6255 if (!pcbRead) 6262 6256 return VERR_OUT_OF_SELECTOR_BOUNDS; 6263 cbRead = cb ;6257 cbRead = cb + 1; 6264 6258 } 6265 6259 } -
trunk/src/VBox/VMM/DBGFAddr.cpp
r4198 r4212 65 65 66 66 /* check limit. */ 67 if ( (SelInfo.Raw.Gen.u4Type & X86_SEL_TYPE_DOWN) 68 && SelInfo.Raw.Gen.u1DescType 69 && ( SelInfo.Raw.Gen.u4Type == X86_SEL_TYPE_RO_DOWN 70 || SelInfo.Raw.Gen.u4Type == X86_SEL_TYPE_RO_DOWN_ACC 71 || SelInfo.Raw.Gen.u4Type == X86_SEL_TYPE_RW_DOWN 72 || SelInfo.Raw.Gen.u4Type == X86_SEL_TYPE_RW_DOWN_ACC)) 67 if (SELMSelInfoIsExpandDown(&SelInfo)) 73 68 { 74 if (!SelInfo.Raw.Gen.u1Granularity && off > UINT32_C(0xffff)) 69 if ( !SelInfo.Raw.Gen.u1Granularity 70 && off > UINT32_C(0xffff)) 75 71 return VERR_OUT_OF_SELECTOR_BOUNDS; 76 72 if (off <= SelInfo.cbLimit)
Note:
See TracChangeset
for help on using the changeset viewer.