Преглед изворни кода

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 пре 16 година
родитељ
комит
9aec835541
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2
    0
      src/arch/i386/drivers/net/undiisr.S

+ 2
- 0
src/arch/i386/drivers/net/undiisr.S Прегледај датотеку

@@ -23,6 +23,7 @@ undiisr:
23 23
 	pushw	%es
24 24
 	pushw	%fs
25 25
 	pushw	%gs
26
+	pushfl
26 27
 	pushal
27 28
 
28 29
 	/* Set up our segment registers */
@@ -64,6 +65,7 @@ chain:	/* Chain to next handler */
64 65
 	
65 66
 exit:	/* Restore registers and return */
66 67
 	popal
68
+	popfl
67 69
 	popw	%gs
68 70
 	popw	%fs
69 71
 	popw	%es

Loading…
Откажи
Сачувај