Pārlūkot izejas kodu

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 gadus atpakaļ
vecāks
revīzija
9aec835541
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2
    0
      src/arch/i386/drivers/net/undiisr.S

+ 2
- 0
src/arch/i386/drivers/net/undiisr.S Parādīt failu

@@ -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

Notiek ielāde…
Atcelt
Saglabāt