diff options
author | Jan Beulich <JBeulich@novell.com> | 2009-12-18 11:12:56 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-30 05:57:31 -0500 |
commit | 1b1d9258181bae199dc940f4bd0298126b9a73d9 (patch) | |
tree | b17ca149d943051fc76e79b75fc4b89c61b524a2 /arch/x86/lib | |
parent | 499a5f1efa0b0ac56ec5d060412aed84ae68e63e (diff) |
x86-64: Modify copy_user_generic() alternatives mechanism
In order to avoid unnecessary chains of branches, rather than
implementing copy_user_generic() as a function consisting of
just a single (possibly patched) branch, instead properly deal
with patching call instructions in the alternative instructions
framework, and move the patching into the callers.
As a follow-on, one could also introduce something like
__EXPORT_SYMBOL_ALT() to avoid patching call sites in modules.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Cc: Nick Piggin <npiggin@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <4B2BB8180200007800026AE7@vpn.id2.novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r-- | arch/x86/lib/copy_user_64.S | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/x86/lib/copy_user_64.S b/arch/x86/lib/copy_user_64.S index cf889d4e076a..71100c98e337 100644 --- a/arch/x86/lib/copy_user_64.S +++ b/arch/x86/lib/copy_user_64.S | |||
@@ -90,12 +90,6 @@ ENTRY(_copy_from_user) | |||
90 | CFI_ENDPROC | 90 | CFI_ENDPROC |
91 | ENDPROC(_copy_from_user) | 91 | ENDPROC(_copy_from_user) |
92 | 92 | ||
93 | ENTRY(copy_user_generic) | ||
94 | CFI_STARTPROC | ||
95 | ALTERNATIVE_JUMP X86_FEATURE_REP_GOOD,copy_user_generic_unrolled,copy_user_generic_string | ||
96 | CFI_ENDPROC | ||
97 | ENDPROC(copy_user_generic) | ||
98 | |||
99 | .section .fixup,"ax" | 93 | .section .fixup,"ax" |
100 | /* must zero dest */ | 94 | /* must zero dest */ |
101 | ENTRY(bad_from_user) | 95 | ENTRY(bad_from_user) |