diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86_64/lib/memcpy.S | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86_64/lib/memcpy.S b/arch/x86_64/lib/memcpy.S index 0ea0ddc875a7..c22981fa2f3a 100644 --- a/arch/x86_64/lib/memcpy.S +++ b/arch/x86_64/lib/memcpy.S | |||
@@ -124,6 +124,8 @@ ENDPROC(__memcpy) | |||
124 | .quad memcpy | 124 | .quad memcpy |
125 | .quad 1b | 125 | .quad 1b |
126 | .byte X86_FEATURE_REP_GOOD | 126 | .byte X86_FEATURE_REP_GOOD |
127 | .byte .Lfinal - memcpy | 127 | /* Replace only beginning, memcpy is used to apply alternatives, so it |
128 | * is silly to overwrite itself with nops - reboot is only outcome... */ | ||
129 | .byte 2b - 1b | ||
128 | .byte 2b - 1b | 130 | .byte 2b - 1b |
129 | .previous | 131 | .previous |