diff options
Diffstat (limited to 'arch/x86/lib')
-rw-r--r-- | arch/x86/lib/copy_user_64.S | 11 |
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 |
27 | 0: | 27 | 0: |
28 | .byte 0xe9 /* 32bit jump */ | 28 | jmp \orig |
29 | .long \orig-1f /* by default jump to orig */ | ||
30 | 1: | 29 | 1: |
31 | .section .altinstr_replacement,"ax" | 30 | .section .altinstr_replacement,"ax" |
32 | 2: .byte 0xe9 /* near jump with 32bit immediate */ | 31 | 2: |
33 | .long \alt1-1b /* offset */ /* or alternatively to alt1 */ | 32 | jmp \alt1 |
34 | 3: .byte 0xe9 /* near jump with 32bit immediate */ | 33 | 3: |
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" |