mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 23:15:10 +03: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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user