瀏覽代碼

undiisr.S: save/restore upper half of %eflags

Since we don't know what the UNDI code does, it is safest to
save/restore %eflags even though the lower half of %eflags is
automatically saved by the interrupt itself.
tags/v0.9.3
H. Peter Anvin 17 年之前
父節點
當前提交
9aec835541
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      src/arch/i386/drivers/net/undiisr.S

+ 2
- 0
src/arch/i386/drivers/net/undiisr.S 查看文件

23
 	pushw	%es
23
 	pushw	%es
24
 	pushw	%fs
24
 	pushw	%fs
25
 	pushw	%gs
25
 	pushw	%gs
26
+	pushfl
26
 	pushal
27
 	pushal
27
 
28
 
28
 	/* Set up our segment registers */
29
 	/* Set up our segment registers */
64
 	
65
 	
65
 exit:	/* Restore registers and return */
66
 exit:	/* Restore registers and return */
66
 	popal
67
 	popal
68
+	popfl
67
 	popw	%gs
69
 	popw	%gs
68
 	popw	%fs
70
 	popw	%fs
69
 	popw	%es
71
 	popw	%es

Loading…
取消
儲存