Merge branch 'drm-next-4.6' of git://people.freedesktop.org/~agd5f/linux into drm...
[deliverable/linux.git] / arch / x86 / lib / memcpy_64.S
index cbb8ee5830ff134f131533fd91ea8be35a853dba..2ec0b0abbfaa876fb242b71061b70cdb7dc9db20 100644 (file)
@@ -1,6 +1,7 @@
 /* Copyright 2002 Andi Kleen */
 
 #include <linux/linkage.h>
+#include <asm/errno.h>
 #include <asm/cpufeatures.h>
 #include <asm/alternative-asm.h>
 
@@ -268,16 +269,16 @@ ENTRY(memcpy_mcsafe)
        decl %ecx
        jnz .L_copy_trailing_bytes
 
-       /* Copy successful. Return true */
+       /* Copy successful. Return zero */
 .L_done_memcpy_trap:
        xorq %rax, %rax
        ret
 ENDPROC(memcpy_mcsafe)
 
        .section .fixup, "ax"
-       /* Return false for any failure */
+       /* Return -EFAULT for any failure */
 .L_memcpy_mcsafe_fail:
-       mov     $1, %rax
+       mov     $-EFAULT, %rax
        ret
 
        .previous
This page took 0.02489 seconds and 5 git commands to generate.