diff options
author | Michael Brown <mcb30@etherboot.org> | 2008-02-13 14:58:20 +0000 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2008-02-13 14:58:20 +0000 |
commit | 385b7a623d33bf7a2f2f9c1f1cace57feb17082a (patch) | |
tree | e0ce85f552e6b50f1d18b7a9178d8c689eb81b5e | |
parent | c1006ffdb713abd9b9a39b42d74a8a9f77b7b62b (diff) | |
download | ipxe-385b7a623d33bf7a2f2f9c1f1cace57feb17082a.tar.gz |
Guard against corruption of top half of %esp during UNDI ISR
-rw-r--r-- | src/arch/i386/drivers/net/undiisr.S | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/i386/drivers/net/undiisr.S b/src/arch/i386/drivers/net/undiisr.S index f1c9eb15..a6c6c381 100644 --- a/src/arch/i386/drivers/net/undiisr.S +++ b/src/arch/i386/drivers/net/undiisr.S @@ -64,7 +64,10 @@ chain: /* Chain to next handler */ lcall *undiisr_next_handler exit: /* Restore registers and return */ + cli popal + movzwl %sp, %esp + addr32 movl -20(%esp), %esp /* %esp isn't restored by popal */ popfl popw %gs popw %fs |