Changeset 60119 in vbox for trunk/src/VBox
- Timestamp:
- Mar 21, 2016 12:50:26 PM (9 years ago)
- 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 129 129 bs3-cmn-TrapSetHandler.c \ 130 130 bs3-cmn-TrapSetJmp.asm \ 131 bs3-cmn-TrapSetJmpAndRestore.c \ 131 132 bs3-cmn-TrapUnsetJmp.c \ 132 133 ../../../Runtime/common/asm/ASMBitFirstClear.asm \ -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-RegCtxConvertToRingX.c
r60009 r60119 85 85 uSel |= bRing; 86 86 uSel += BS3_SEL_R0_FIRST; 87 uSel |= (uint16_t)bRing << BS3_SEL_RING_SHIFT;87 uSel += (uint16_t)bRing << BS3_SEL_RING_SHIFT; 88 88 } 89 89 else -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-RegCtxRestore.asm
r60088 r60119 330 330 mov ecx, [xBX + BS3REGCTX.rcx] 331 331 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 332 337 mov edi, [xBX + BS3REGCTX.rdi] 333 338 mov ebx, [xBX + BS3REGCTX.rbx] -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h
r60097 r60119 2093 2093 * fault, interrupt or irq. 2094 2094 * 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. 2097 2097 * @param pTrapFrame Where to store the trap information when 2098 2098 * returning @c false. … … 2103 2103 BS3_DECL(DECL_RETURNS_TWICE(bool)) Bs3TrapSetJmp_c64(PBS3TRAPFRAME pTrapFrame); /**< @copydoc Bs3TrapSetJmp_c16 */ 2104 2104 #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 */ 2112 BS3_DECL(void) Bs3TrapSetJmpAndRestore_c16(PCBS3REGCTX pCtxRestore, PBS3TRAPFRAME pTrapFrame); 2113 BS3_DECL(void) Bs3TrapSetJmpAndRestore_c32(PCBS3REGCTX pCtxRestore, PBS3TRAPFRAME pTrapFrame); /**< @copydoc Bs3TrapSetJmpAndRestore_c16 */ 2114 BS3_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. */ 2105 2116 2106 2117 /**
Note:
See TracChangeset
for help on using the changeset viewer.