diff options
author | Fenghua Yu <fenghua.yu@intel.com> | 2011-01-18 02:39:15 +0100 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2011-01-26 01:58:39 +0100 |
commit | 9599ec0471deae24044241e2173090d2cbc0e899 (patch) | |
tree | 7ff508aefdb075ce62ef59e6218588eacedeff7f /arch/x86/kernel | |
parent | Linux 2.6.38-rc2 (diff) | |
download | linux-9599ec0471deae24044241e2173090d2cbc0e899.tar.xz linux-9599ec0471deae24044241e2173090d2cbc0e899.zip |
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>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/x8664_ksyms_64.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/x8664_ksyms_64.c b/arch/x86/kernel/x8664_ksyms_64.c index 1b950d151e58..9796c2f3d074 100644 --- a/arch/x86/kernel/x8664_ksyms_64.c +++ b/arch/x86/kernel/x8664_ksyms_64.c @@ -52,6 +52,7 @@ extern void *__memcpy(void *, const void *, __kernel_size_t); EXPORT_SYMBOL(memset); EXPORT_SYMBOL(memcpy); EXPORT_SYMBOL(__memcpy); +EXPORT_SYMBOL(memmove); EXPORT_SYMBOL(empty_zero_page); #ifndef CONFIG_PARAVIRT |