- 時間撮記:
- 2016-3-11 上午12:56:10 (9 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-Trap32Init.c
r59286 r59984 55 55 * Initialize the normal TSS so we can do ring transitions via the IDT. 56 56 */ 57 //pTss = &BS3_DATA_NM(Bs3Tss32);58 Bs3MemZero( &BS3_DATA_NM(Bs3Tss32), sizeof(*pTss));59 BS3_DATA_NM(Bs3Tss32).esp0 = BS3_ADDR_STACK_R0;60 BS3_DATA_NM(Bs3Tss32).ss0 = BS3_SEL_R0_SS32;61 BS3_DATA_NM(Bs3Tss32).esp1 = BS3_ADDR_STACK_R1;62 BS3_DATA_NM(Bs3Tss32).ss1 = BS3_SEL_R1_SS32;63 BS3_DATA_NM(Bs3Tss32).esp2 = BS3_ADDR_STACK_R2;64 BS3_DATA_NM(Bs3Tss32).ss2 = BS3_SEL_R2_SS32;57 pTss = &BS3_DATA_NM(Bs3Tss32); 58 Bs3MemZero(pTss, sizeof(*pTss)); 59 pTss->esp0 = BS3_ADDR_STACK_R0; 60 pTss->ss0 = BS3_SEL_R0_SS32; 61 pTss->esp1 = BS3_ADDR_STACK_R1; 62 pTss->ss1 = BS3_SEL_R1_SS32 | 1; 63 pTss->esp2 = BS3_ADDR_STACK_R2; 64 pTss->ss2 = BS3_SEL_R2_SS32 | 2; 65 65 66 66 /* … … 73 73 pTss->ss0 = BS3_SEL_R0_SS32; 74 74 pTss->esp1 = BS3_ADDR_STACK_R1; 75 pTss->ss1 = BS3_SEL_R1_SS32 ;75 pTss->ss1 = BS3_SEL_R1_SS32 | 1; 76 76 pTss->esp2 = BS3_ADDR_STACK_R2; 77 pTss->ss2 = BS3_SEL_R2_SS32 ;77 pTss->ss2 = BS3_SEL_R2_SS32 | 2; 78 78 pTss->eip = BS3_DATA_NM(g_Bs3Trap32DoubleFaultHandlerFlatAddr); 79 79 pTss->eflags = X86_EFL_1;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器