]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[tcpip] Fix building under Cygwin
authorJoshua Oreman <oremanj@rwcr.net>
Mon, 23 Jul 2012 22:07:52 +0000 (23:07 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 23 Jul 2012 22:20:56 +0000 (23:20 +0100)
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>
src/arch/x86/core/x86_tcpip.c

index b4e7c3b83fded67201da9e18d8e64798f2d1b893..8a4ce5152cde146aa7f0ce8fcfec0f4f7da7e1e8 100644 (file)
@@ -123,7 +123,7 @@ uint16_t x86_tcpip_continue_chksum ( uint16_t partial,
                  "\nx86_tcpip_loop_end:\n\t"
                  "loop x86_tcpip_loop_start\n\t"
                  ".equ x86_tcpip_loop_step_size, "
-                 "  ( ( x86_tcpip_loop_end - x86_tcpip_loop_start ) / 16 )\n\t"
+                 "  ( ( x86_tcpip_loop_end - x86_tcpip_loop_start ) >> 4 )\n\t"
 
                  /* Checksum remaining whole words */
                  "mov %13, %3\n\t"