2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-29 12:49:49 +00:00

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

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