aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/lib
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-03-24 12:47:32 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-03-24 12:47:32 -0400
commitd88f48e12821ab4b2244124d50ac094568f48db5 (patch)
tree4eb16b46898190aac33ed6125a9a0e734d5be10e /arch/x86/lib
parentbe53f58fa0fcd97c62a84f2eb98cff528f8b2443 (diff)
parent9da77666d6975219281fd400eb9608a047337414 (diff)
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fixes from Ingo Molnar: "Misc fixes: - fix hotplug bugs - fix irq live lock - fix various topology handling bugs - fix APIC ACK ordering - fix PV iopl handling - fix speling - fix/tweak memcpy_mcsafe() return value - fix fbcon bug - remove stray prototypes" * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/msr: Remove unused native_read_tscp() x86/apic: Remove declaration of unused hw_nmi_is_cpu_stuck x86/oprofile/nmi: Add missing hotplug FROZEN handling x86/hpet: Use proper mask to modify hotplug action x86/apic/uv: Fix the hotplug notifier x86/apb/timer: Use proper mask to modify hotplug action x86/topology: Use total_cpus not nr_cpu_ids for logical packages x86/topology: Fix Intel HT disable x86/topology: Fix logical package mapping x86/irq: Cure live lock in fixup_irqs() x86/tsc: Prevent NULL pointer deref in calibrate_delay_is_known() x86/apic: Fix suspicious RCU usage in smp_trace_call_function_interrupt() x86/iopl: Fix iopl capability check on Xen PV x86/iopl/64: Properly context-switch IOPL on Xen PV selftests/x86: Add an iopl test x86/mm, x86/mce: Fix return type/value for memcpy_mcsafe() x86/video: Don't assume all FB devices are PCI devices arch/x86/irq: Purge useless handler declarations from hw_irq.h x86: Fix misspellings in comments
Diffstat (limited to 'arch/x86/lib')
-rw-r--r--arch/x86/lib/memcpy_64.S7
-rw-r--r--arch/x86/lib/memset_64.S2
2 files changed, 5 insertions, 4 deletions
diff --git a/arch/x86/lib/memcpy_64.S b/arch/x86/lib/memcpy_64.S
index cbb8ee5830ff..2ec0b0abbfaa 100644
--- a/arch/x86/lib/memcpy_64.S
+++ b/arch/x86/lib/memcpy_64.S
@@ -1,6 +1,7 @@
1/* Copyright 2002 Andi Kleen */ 1/* Copyright 2002 Andi Kleen */
2 2
3#include <linux/linkage.h> 3#include <linux/linkage.h>
4#include <asm/errno.h>
4#include <asm/cpufeatures.h> 5#include <asm/cpufeatures.h>
5#include <asm/alternative-asm.h> 6#include <asm/alternative-asm.h>
6 7
@@ -268,16 +269,16 @@ ENTRY(memcpy_mcsafe)
268 decl %ecx 269 decl %ecx
269 jnz .L_copy_trailing_bytes 270 jnz .L_copy_trailing_bytes
270 271
271 /* Copy successful. Return true */ 272 /* Copy successful. Return zero */
272.L_done_memcpy_trap: 273.L_done_memcpy_trap:
273 xorq %rax, %rax 274 xorq %rax, %rax
274 ret 275 ret
275ENDPROC(memcpy_mcsafe) 276ENDPROC(memcpy_mcsafe)
276 277
277 .section .fixup, "ax" 278 .section .fixup, "ax"
278 /* Return false for any failure */ 279 /* Return -EFAULT for any failure */
279.L_memcpy_mcsafe_fail: 280.L_memcpy_mcsafe_fail:
280 mov $1, %rax 281 mov $-EFAULT, %rax
281 ret 282 ret
282 283
283 .previous 284 .previous
diff --git a/arch/x86/lib/memset_64.S b/arch/x86/lib/memset_64.S
index c9c81227ea37..e1229ecd2a82 100644
--- a/arch/x86/lib/memset_64.S
+++ b/arch/x86/lib/memset_64.S
@@ -9,7 +9,7 @@
9/* 9/*
10 * ISO C memset - set a memory block to a byte value. This function uses fast 10 * ISO C memset - set a memory block to a byte value. This function uses fast
11 * string to get better performance than the original function. The code is 11 * string to get better performance than the original function. The code is
12 * simpler and shorter than the orignal function as well. 12 * simpler and shorter than the original function as well.
13 * 13 *
14 * rdi destination 14 * rdi destination
15 * rsi value (char) 15 * rsi value (char)