Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: Change x86_64 add32_with_carry to allow memory operand

Note add32_with_carry(a, b) is suboptimal, as it forces
a and b in registers.

b could be a memory or a register operand.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Tom Herbert and committed by
David S. Miller
4405b4d6 a2785344

+1 -1
+1 -1
arch/x86/include/asm/checksum_64.h
··· 184 184 asm("addl %2,%0\n\t" 185 185 "adcl $0,%0" 186 186 : "=r" (a) 187 - : "0" (a), "r" (b)); 187 + : "0" (a), "rm" (b)); 188 188 return a; 189 189 } 190 190