amd64: switch csum_partial_copy_generic() to new calling conventions
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 20 Jul 2020 01:56:07 +0000 (21:56 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 20 Aug 2020 19:45:22 +0000 (15:45 -0400)
commitdaf52375c19feb4397cfd883302a7c907de2d6ad
treed8b45999cca84afbc0065cc2fc16aa7abddd035d
parentfdf8bee96f9aeaac4559725c2dfae6e1bd7b7043
amd64: switch csum_partial_copy_generic() to new calling conventions

... and fold handling of misaligned case into it.

Implementation note: we stash the "will we need to rol8 the sum in the end"
flag into the MSB of %rcx (the lower 32 bits are used for length); the rest
is pretty straightforward.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/x86/include/asm/checksum_64.h
arch/x86/lib/csum-copy_64.S
arch/x86/lib/csum-wrappers_64.c