Kaynağa Gözat

[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 yıl önce
ebeveyn
işleme
fb7c022c2c
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1
    1
      src/arch/x86/core/x86_tcpip.c

+ 1
- 1
src/arch/x86/core/x86_tcpip.c Dosyayı Görüntüle

@@ -123,7 +123,7 @@ uint16_t x86_tcpip_continue_chksum ( uint16_t partial,
123 123
 		  "\nx86_tcpip_loop_end:\n\t"
124 124
 		  "loop x86_tcpip_loop_start\n\t"
125 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 128
 		  /* Checksum remaining whole words */
129 129
 		  "mov %13, %3\n\t"

Loading…
İptal
Kaydet