From cd2f2571d875dca599a8eae6cae9cf9b3c29a99a Mon Sep 17 00:00:00 2001 From: Alexander Kabaev Date: Fri, 11 Jul 2003 07:49:40 +0000 Subject: [PATCH] Fix i386 assembly constraints. The same register cannot be in output and clobber lists at the same time. --- sys/dev/sbni/if_sbni.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/sbni/if_sbni.c b/sys/dev/sbni/if_sbni.c index e5d54172a8eb..6ea0ec92b788 100644 --- a/sys/dev/sbni/if_sbni.c +++ b/sys/dev/sbni/if_sbni.c @@ -1222,9 +1222,9 @@ calc_crc32(u_int32_t crc, caddr_t p, u_int len) "xorb 2(%%esi), %%bl\n" "xorl (%%edi,%%ebx,4), %%eax\n" "2:\n" - : - : "a" (_crc), "g" (p), "g" (len) - : "ax", "bx", "cx", "dx", "si", "di" + : "=a" (_crc) + : "g" (p), "g" (len) + : "bx", "cx", "dx", "si", "di" ); return (_crc);