Skip to content

Commit

Permalink
Guard against corruption of top half of %esp during UNDI ISR
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Brown committed Feb 13, 2008
1 parent c1006ff commit 385b7a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/arch/i386/drivers/net/undiisr.S
Expand Up @@ -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
Expand Down

0 comments on commit 385b7a6

Please sign in to comment.