- 時間撮記:
- 2022-6-27 下午06:49:14 (3 年 以前)
- svn:sync-xref-src-repo-rev:
- 151995
- 檔案:
-
- 複製 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-ExtCtxGetFcw.c
r95386 r95398 1 1 /* $Id$ */ 2 2 /** @file 3 * BS3Kit - Bs3ExtCtxGet Mm3 * BS3Kit - Bs3ExtCtxGetFcw 4 4 */ 5 5 … … 32 32 33 33 34 #undef Bs3ExtCtxGet Mm35 BS3_CMN_DEF(uint 64_t, Bs3ExtCtxGetMm,(PCBS3EXTCTX pExtCtx, uint8_t iReg))34 #undef Bs3ExtCtxGetFcw 35 BS3_CMN_DEF(uint16_t, Bs3ExtCtxGetFcw,(PCBS3EXTCTX pExtCtx)) 36 36 { 37 AssertCompileMembersAtSameOffset(BS3EXTCTX, Ctx.x87.aRegs, BS3EXTCTX, Ctx.x.x87.aRegs); 38 if (iReg < RT_ELEMENTS(pExtCtx->Ctx.x87.aRegs)) 39 switch (pExtCtx->enmMethod) 40 { 41 case BS3EXTCTXMETHOD_FXSAVE: 42 case BS3EXTCTXMETHOD_XSAVE: 43 return pExtCtx->Ctx.x87.aRegs[iReg].mmx; 37 AssertCompileMembersAtSameOffset(BS3EXTCTX, Ctx.x87.FCW, BS3EXTCTX, Ctx.x.x87.FCW); 38 switch (pExtCtx->enmMethod) 39 { 40 case BS3EXTCTXMETHOD_FXSAVE: 41 case BS3EXTCTXMETHOD_XSAVE: 42 return pExtCtx->Ctx.x87.FCW; 44 43 45 46 return pExtCtx->Ctx.Ancient.regs[iReg].mmx;47 44 case BS3EXTCTXMETHOD_ANCIENT: 45 return pExtCtx->Ctx.Ancient.FCW; 46 } 48 47 return 0; 49 48 }
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器