VirtualBox

Ignore:
Timestamp:
May 4, 2018 10:10:02 PM (7 years ago)
Author:
vboxsync
Message:

bs3kit: Added Bs3TrapSetDpl, fixed bug in Bs3TestCheckRegCtxEx. bugref:9171

Location:
trunk/src/VBox/ValidationKit/bootsectors/bs3kit
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/Makefile.kmk

    r70668 r72125  
    175175        bs3-cmn-Trap64Init.c \
    176176        bs3-cmn-Trap64SetGate.c \
     177        bs3-cmn-TrapSetDpl.c \
    177178        bs3-cmn-TrapDefaultHandler.c \
    178179        bs3-cmn-TrapHandlersData.asm \
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-TestCheckRegCtxEx.c

    r69111 r72125  
    4949    CHECK_MEMBER("rdx",     "%08RX64",  pActualCtx->rdx.u,    pExpectedCtx->rdx.u);
    5050    CHECK_MEMBER("rbx",     "%08RX64",  pActualCtx->rbx.u,    pExpectedCtx->rbx.u);
    51     CHECK_MEMBER("rsp",     "%08RX64",  pActualCtx->rsp.u,    pExpectedCtx->rsp.u);
     51    CHECK_MEMBER("rsp",     "%08RX64",  pActualCtx->rsp.u,    pExpectedCtx->rsp.u + cbSpAcjust);
    5252    CHECK_MEMBER("rbp",     "%08RX64",  pActualCtx->rbp.u,    pExpectedCtx->rbp.u);
    5353    CHECK_MEMBER("rsi",     "%08RX64",  pActualCtx->rsi.u,    pExpectedCtx->rsi.u);
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-autostubs.kmk

    r69111 r72125  
    7070$(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3SelFar32ToFlat32)
    7171$(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3SelProtFar32ToFlat32)
     72$(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3TrapSetDpl)
    7273$(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3MemAlloc)
    7374$(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3MemAllocZ)
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-mangling-code-define.h

    r69111 r72125  
    156156#define Bs3TrapRmV86InitEx BS3_CMN_MANGLER(Bs3TrapRmV86InitEx)
    157157#define Bs3TrapRmV86SetGate BS3_CMN_MANGLER(Bs3TrapRmV86SetGate)
     158#define Bs3TrapSetDpl BS3_CMN_MANGLER(Bs3TrapSetDpl)
    158159#define Bs3TrapSetHandler BS3_CMN_MANGLER(Bs3TrapSetHandler)
    159160#define Bs3TrapSetHandlerEx BS3_CMN_MANGLER(Bs3TrapSetHandlerEx)
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-mangling-code-undef.h

    r69111 r72125  
    156156#undef Bs3TrapRmV86InitEx
    157157#undef Bs3TrapRmV86SetGate
     158#undef Bs3TrapSetDpl
    158159#undef Bs3TrapSetHandler
    159160#undef Bs3TrapSetHandlerEx
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h

    r69111 r72125  
    29642964
    29652965/**
     2966 * Adjusts the DPL the IDT entry specified by @a iIdt.
     2967 *
     2968 * The change is applied to the 16-bit, 32-bit and 64-bit IDTs.
     2969 *
     2970 * @returns Old DPL (from 64-bit IDT).
     2971 * @param   iIdt        The index of the IDT and IVT entry to set.
     2972 * @param   bDpl        The DPL.
     2973 */
     2974BS3_CMN_PROTO_STUB(uint8_t, Bs3TrapSetDpl,(uint8_t iIdt, uint8_t bDpl));
     2975
     2976/**
    29662977 * C-style trap handler.
    29672978 *
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