From fb7c022c2c72c4e3a549cb7a9157e60ef2e42b09 Mon Sep 17 00:00:00 2001 From: Joshua Oreman Date: Mon, 23 Jul 2012 23:07:52 +0100 Subject: [PATCH] [tcpip] Fix building under Cygwin Cygwin's assembler treats '/' as a comment character. Reported-by: Steve Goodrich Signed-off-by: Michael Brown --- src/arch/x86/core/x86_tcpip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/x86/core/x86_tcpip.c b/src/arch/x86/core/x86_tcpip.c index b4e7c3b8..8a4ce515 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"