Procházet zdrojové kódy

[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 před 11 roky
rodič
revize
fb7c022c2c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      src/arch/x86/core/x86_tcpip.c

+ 1
- 1
src/arch/x86/core/x86_tcpip.c Zobrazit soubor

@@ -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"

Načítá se…
Zrušit
Uložit