aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/lib
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/lib')
-rw-r--r--arch/x86/lib/copy_user_64.S11
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/x86/lib/copy_user_64.S b/arch/x86/lib/copy_user_64.S
index a9aedd6aa7f7..dad718ce805c 100644
--- a/arch/x86/lib/copy_user_64.S
+++ b/arch/x86/lib/copy_user_64.S
@@ -25,14 +25,13 @@
25 */ 25 */
26 .macro ALTERNATIVE_JUMP feature1,feature2,orig,alt1,alt2 26 .macro ALTERNATIVE_JUMP feature1,feature2,orig,alt1,alt2
270: 270:
28 .byte 0xe9 /* 32bit jump */ 28 jmp \orig
29 .long \orig-1f /* by default jump to orig */
301: 291:
31 .section .altinstr_replacement,"ax" 30 .section .altinstr_replacement,"ax"
322: .byte 0xe9 /* near jump with 32bit immediate */ 312:
33 .long \alt1-1b /* offset */ /* or alternatively to alt1 */ 32 jmp \alt1
343: .byte 0xe9 /* near jump with 32bit immediate */ 333:
35 .long \alt2-1b /* offset */ /* or alternatively to alt2 */ 34 jmp \alt2
36 .previous 35 .previous
37 36
38 .section .altinstructions,"a" 37 .section .altinstructions,"a"