aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Oreman <oremanj@rwcr.net>2012-07-23 23:07:52 +0100
committerMichael Brown <mcb30@ipxe.org>2012-07-23 23:20:56 +0100
commitfb7c022c2c72c4e3a549cb7a9157e60ef2e42b09 (patch)
tree5e7fa4a04ae5d99635cc926ca53765d4f3bc5e85
parentc70586f6e93b975c68af14b108d5114636af6ba0 (diff)
downloadipxe-fb7c022c2c72c4e3a549cb7a9157e60ef2e42b09.zip
ipxe-fb7c022c2c72c4e3a549cb7a9157e60ef2e42b09.tar.gz
ipxe-fb7c022c2c72c4e3a549cb7a9157e60ef2e42b09.tar.bz2
[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>
-rw-r--r--src/arch/x86/core/x86_tcpip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/core/x86_tcpip.c b/src/arch/x86/core/x86_tcpip.c
index b4e7c3b..8a4ce51 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"