Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
H. Peter Anvin committed Feb 11, 2008
1 parent 621c288 commit 9aec835
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/arch/i386/drivers/net/undiisr.S
Expand Up @@ -23,6 +23,7 @@ undiisr:
pushw %es
pushw %fs
pushw %gs
pushfl
pushal

/* Set up our segment registers */
Expand Down Expand Up @@ -64,6 +65,7 @@ chain: /* Chain to next handler */

exit: /* Restore registers and return */
popal
popfl
popw %gs
popw %fs
popw %es
Expand Down

0 comments on commit 9aec835

Please sign in to comment.