x86-64, mem: Convert memmove() to assembly file and fix return value bug
authorFenghua Yu <fenghua.yu@intel.com>
Tue, 18 Jan 2011 01:39:15 +0000 (17:39 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 26 Jan 2011 00:58:39 +0000 (16:58 -0800)
commit9599ec0471deae24044241e2173090d2cbc0e899
tree7ff508aefdb075ce62ef59e6218588eacedeff7f
parent1bae4ce27c9c90344f23c65ea6966c50ffeae2f5
x86-64, mem: Convert memmove() to assembly file and fix return value bug

memmove_64.c only implements memmove() function which is completely written in
inline assembly code. Therefore it doesn't make sense to keep the assembly code
in .c file.

Currently memmove() doesn't store return value to rax. This may cause issue if
caller uses the return value. The patch fixes this issue.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
LKML-Reference: <1295314755-6625-1-git-send-email-fenghua.yu@intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/x8664_ksyms_64.c
arch/x86/lib/memmove_64.S [new file with mode: 0644]
arch/x86/lib/memmove_64.c [deleted file]