VirtualBox

Changeset 60119 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 21, 2016 12:50:26 PM (9 years ago)
Author:
vboxsync
Message:

bs3kit: updates.

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

Legend:

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

    r60097 r60119  
    129129        bs3-cmn-TrapSetHandler.c \
    130130        bs3-cmn-TrapSetJmp.asm \
     131        bs3-cmn-TrapSetJmpAndRestore.c \
    131132        bs3-cmn-TrapUnsetJmp.c \
    132133       ../../../Runtime/common/asm/ASMBitFirstClear.asm \
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-RegCtxConvertToRingX.c

    r60009 r60119  
    8585            uSel |= bRing;
    8686            uSel += BS3_SEL_R0_FIRST;
    87             uSel |= (uint16_t)bRing << BS3_SEL_RING_SHIFT;
     87            uSel += (uint16_t)bRing << BS3_SEL_RING_SHIFT;
    8888        }
    8989        else
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-RegCtxRestore.asm

    r60088 r60119  
    330330        mov     ecx, [xBX + BS3REGCTX.rcx]
    331331        mov     esi, [xBX + BS3REGCTX.rsi]
     332%if TMPL_BITS == 16 ; if SS is 16-bit, we will not be able to restore the high word.
     333        mov     edi, [xBX + BS3REGCTX.rsp]
     334        mov     di, sp
     335        mov     esp, edi
     336%endif
    332337        mov     edi, [xBX + BS3REGCTX.rdi]
    333338        mov     ebx, [xBX + BS3REGCTX.rbx]
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h

    r60097 r60119  
    20932093 * fault, interrupt or irq.
    20942094 *
    2095  * @retval true on the initial call.
    2096  * @retval false on trap return.
     2095 * @retval  true on the initial call.
     2096 * @retval  false on trap return.
    20972097 * @param   pTrapFrame      Where to store the trap information when
    20982098 *                          returning @c false.
     
    21032103BS3_DECL(DECL_RETURNS_TWICE(bool)) Bs3TrapSetJmp_c64(PBS3TRAPFRAME pTrapFrame); /**< @copydoc Bs3TrapSetJmp_c16 */
    21042104#define Bs3TrapSetJmp BS3_CMN_NM(Bs3TrapSetJmp) /**< Selects #Bs3TrapSetJmp_c16, #Bs3TrapSetJmp_c32 or #Bs3TrapSetJmp_c64. */
     2105
     2106/**
     2107 * Combination of #Bs3TrapSetJmp and #Bs3RegCtxRestore.
     2108 *
     2109 * @param   pCtxRestore     The context to restore.
     2110 * @param   pTrapFrame      Where to store the trap information.
     2111 */
     2112BS3_DECL(void) Bs3TrapSetJmpAndRestore_c16(PCBS3REGCTX pCtxRestore, PBS3TRAPFRAME pTrapFrame);
     2113BS3_DECL(void) Bs3TrapSetJmpAndRestore_c32(PCBS3REGCTX pCtxRestore, PBS3TRAPFRAME pTrapFrame); /**< @copydoc Bs3TrapSetJmpAndRestore_c16 */
     2114BS3_DECL(void) Bs3TrapSetJmpAndRestore_c64(PCBS3REGCTX pCtxRestore, PBS3TRAPFRAME pTrapFrame); /**< @copydoc Bs3TrapSetJmpAndRestore_c16 */
     2115#define Bs3TrapSetJmpAndRestore BS3_CMN_NM(Bs3TrapSetJmpAndRestore) /**< Selects #Bs3TrapSetJmpAndRestore_c16, #Bs3TrapSetJmpAndRestore_c32 or #Bs3TrapSetJmpAndRestore_c64. */
    21052116
    21062117/**
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