Browse Source

[tcpip] Fix building under Cygwin

Cygwin's assembler treats '/' as a comment character.

Reported-by: Steve Goodrich <steve.goodrich@se-eng.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Joshua Oreman 12 years ago
parent
commit
fb7c022c2c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/arch/x86/core/x86_tcpip.c

+ 1
- 1
src/arch/x86/core/x86_tcpip.c View File

123
 		  "\nx86_tcpip_loop_end:\n\t"
123
 		  "\nx86_tcpip_loop_end:\n\t"
124
 		  "loop x86_tcpip_loop_start\n\t"
124
 		  "loop x86_tcpip_loop_start\n\t"
125
 		  ".equ x86_tcpip_loop_step_size, "
125
 		  ".equ x86_tcpip_loop_step_size, "
126
-		  "  ( ( x86_tcpip_loop_end - x86_tcpip_loop_start ) / 16 )\n\t"
126
+		  "  ( ( x86_tcpip_loop_end - x86_tcpip_loop_start ) >> 4 )\n\t"
127
 
127
 
128
 		  /* Checksum remaining whole words */
128
 		  /* Checksum remaining whole words */
129
 		  "mov %13, %3\n\t"
129
 		  "mov %13, %3\n\t"

Loading…
Cancel
Save