Fix i386 assembly constraints. The same register cannot be

in output and clobber lists at the same time.
This commit is contained in:
Alexander Kabaev 2003-07-11 07:49:40 +00:00
parent 360d2e3b61
commit cd2f2571d8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117433

View File

@ -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);