david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

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.
This commit is contained in:
H. Peter Anvin 2008-02-10 18:13:06 -08:00
parent 621c2886aa
commit 9aec835541
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ undiisr:
pushw %es
pushw %fs
pushw %gs
pushfl
pushal
/* Set up our segment registers */
@ -64,6 +65,7 @@ chain: /* Chain to next handler */
exit: /* Restore registers and return */
popal
popfl
popw %gs
popw %fs
popw %es