From fd945a32e8edfd0780990850ebe8b4c598275529 Mon Sep 17 00:00:00 2001 From: kan Date: Fri, 11 Jul 2003 07:49:40 +0000 Subject: 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(-) (limited to 'sys/dev/sbni') diff --git a/sys/dev/sbni/if_sbni.c b/sys/dev/sbni/if_sbni.c index e5d5417..6ea0ec9 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); -- cgit v1.1