From 9aec835541ffc2f5f959fd1fa9367c4e2754db2c Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sun, 10 Feb 2008 18:13:06 -0800 Subject: [PATCH] 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. --- src/arch/i386/drivers/net/undiisr.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/arch/i386/drivers/net/undiisr.S b/src/arch/i386/drivers/net/undiisr.S index 15e1a63a..f1c9eb15 100644 --- a/src/arch/i386/drivers/net/undiisr.S +++ b/src/arch/i386/drivers/net/undiisr.S @@ -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