From: Joshua Oreman Date: Mon, 23 Jul 2012 22:07:52 +0000 (+0100) Subject: [tcpip] Fix building under Cygwin X-Git-Tag: v1.20.1~1682 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb7c022c2c72c4e3a549cb7a9157e60ef2e42b09;p=thirdparty%2Fipxe.git [tcpip] Fix building under Cygwin Cygwin's assembler treats '/' as a comment character. Reported-by: Steve Goodrich Signed-off-by: Michael Brown --- diff --git a/src/arch/x86/core/x86_tcpip.c b/src/arch/x86/core/x86_tcpip.c index b4e7c3b83..8a4ce5152 100644 --- a/src/arch/x86/core/x86_tcpip.c +++ b/src/arch/x86/core/x86_tcpip.c @@ -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"