VirtualBox

Changeset 59285 in vbox


Ignore:
Timestamp:
Jan 8, 2016 12:02:39 AM (9 years ago)
Author:
vboxsync
Message:

iprt/x86.h,*: Drop IntRedirBitmap from X86TSS32 and X86TSS64.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/x86.h

    r59238 r59285  
    36363636     * and the end of the interrupt redirection bitmap. */
    36373637    uint16_t    offIoBitmap;
    3638     /** 32 bytes for the virtual interrupt redirection bitmap. (VME) */
    3639     uint8_t     IntRedirBitmap[32];
    36403638} X86TSS32;
    36413639#pragma pack()
     
    36443642/** Pointer to const task segment. */
    36453643typedef const X86TSS32 *PCX86TSS32;
     3644#ifndef VBOX_FOR_DTRACE_LIB
     3645AssertCompileSize(X86TSS32, X86_SEL_TYPE_SYS_386_TSS_LIMIT_MIN + 1);
     3646AssertCompileMemberOffset(X86TSS32, cr3, 28);
     3647AssertCompileMemberOffset(X86TSS32, offIoBitmap, 102);
     3648#endif
    36463649
    36473650/**
     
    36743677     * and the end of the interrupt redirection bitmap. */
    36753678    uint16_t    offIoBitmap;
    3676     /** 32 bytes for the virtual interrupt redirection bitmap. (VME) */
    3677     uint8_t     IntRedirBitmap[32];
    36783679} X86TSS64;
    36793680#pragma pack()
     
    36833684typedef const X86TSS64 *PCX86TSS64;
    36843685#ifndef VBOX_FOR_DTRACE_LIB
    3685 AssertCompileSize(X86TSS64, 136);
     3686AssertCompileSize(X86TSS64, X86_SEL_TYPE_SYS_386_TSS_LIMIT_MIN + 1);
    36863687#endif
    36873688
  • trunk/src/VBox/Debugger/DBGCEmulateCodeView.cpp

    r59246 r59285  
    34643464    {
    34653465        case kTss16:
    3466             cbTssMin = cbTssMax = sizeof(X86TSS16);
     3466            cbTssMin = cbTssMax = X86_SEL_TYPE_SYS_286_TSS_LIMIT_MIN + 1;
    34673467            break;
    34683468        case kTss32:
    3469             cbTssMin = RT_OFFSETOF(X86TSS32, IntRedirBitmap);
     3469            cbTssMin = X86_SEL_TYPE_SYS_386_TSS_LIMIT_MIN + 1;
    34703470            cbTssMax = _64K;
    34713471            break;
    34723472        case kTss64:
    3473             cbTssMin = RT_OFFSETOF(X86TSS64, IntRedirBitmap);
     3473            cbTssMin = X86_SEL_TYPE_SYS_386_TSS_LIMIT_MIN + 1;
    34743474            cbTssMax = _64K;
    34753475            break;
     
    35413541                DBGCCmdHlpPrintf(pCmdHlp, "TSS32 at %Dv  (min=%04x)\n", &VarTssAddr, cbTssMin);
    35423542            DBGCCmdHlpPrintf(pCmdHlp,
    3543                              "eax=%08x bx=%08x ecx=%08x edx=%08x esi=%08x edi=%08x\n"
     3543                             "eax=%08x ebx=%08x ecx=%08x edx=%08x esi=%08x edi=%08x\n"
    35443544                             "eip=%08x esp=%08x ebp=%08x\n"
    35453545                             "cs=%04x  ss=%04x  ds=%04x  es=%04x  fs=%04x  gs=%04x         eflags=%08x\n"
  • trunk/src/VBox/VMM/VMMAll/IEMAll.cpp

    r58934 r59285  
    25562556    uint32_t  cbNewTSS    = uNewTSSLimitMin + 1;
    25572557    RTGCPTR   GCPtrNewTSS = X86DESC_BASE(&pNewDescTSS->Legacy);
    2558     AssertCompile(RTASSERT_OFFSET_OF(X86TSS32, IntRedirBitmap) == X86_SEL_TYPE_SYS_386_TSS_LIMIT_MIN + 1);
     2558    AssertCompile(sizeof(X86TSS32) == X86_SEL_TYPE_SYS_386_TSS_LIMIT_MIN + 1);
    25592559    /** @todo Handle if the TSS crosses a page boundary. Intel specifies that it may
    25602560     *        not perform correct translation if this happens. See Intel spec. 7.2.1
Note: See TracChangeset for help on using the changeset viewer.

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