mirror of https://github.com/ipxe/ipxe.git
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.pull/1/head
parent
621c2886aa
commit
9aec835541
|
@ -23,6 +23,7 @@ undiisr:
|
||||||
pushw %es
|
pushw %es
|
||||||
pushw %fs
|
pushw %fs
|
||||||
pushw %gs
|
pushw %gs
|
||||||
|
pushfl
|
||||||
pushal
|
pushal
|
||||||
|
|
||||||
/* Set up our segment registers */
|
/* Set up our segment registers */
|
||||||
|
@ -64,6 +65,7 @@ chain: /* Chain to next handler */
|
||||||
|
|
||||||
exit: /* Restore registers and return */
|
exit: /* Restore registers and return */
|
||||||
popal
|
popal
|
||||||
|
popfl
|
||||||
popw %gs
|
popw %gs
|
||||||
popw %fs
|
popw %fs
|
||||||
popw %es
|
popw %es
|
||||||
|
|
Loading…
Reference in New Issue