Browse Source

Guard against corruption of top half of %esp during UNDI ISR

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
385b7a623d
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/arch/i386/drivers/net/undiisr.S

+ 3
- 0
src/arch/i386/drivers/net/undiisr.S View File

64
 	lcall	*undiisr_next_handler
64
 	lcall	*undiisr_next_handler
65
 	
65
 	
66
 exit:	/* Restore registers and return */
66
 exit:	/* Restore registers and return */
67
+	cli
67
 	popal
68
 	popal
69
+	movzwl	%sp, %esp
70
+	addr32	movl -20(%esp), %esp	/* %esp isn't restored by popal */
68
 	popfl
71
 	popfl
69
 	popw	%gs
72
 	popw	%gs
70
 	popw	%fs
73
 	popw	%fs

Loading…
Cancel
Save