1 /* Copyright 2002 Andi Kleen */
3 #include <linux/config.h>
4 #include <linux/linkage.h>
5 #include <asm/dwarf2.h>
6 #include <asm/cpufeature.h>
9 * memcpy - Copy a memory block.
17 * rax original destination
38 CFI_ADJUST_CFA_OFFSET 8
107 CFI_ADJUST_CFA_OFFSET -8
115 /* Some CPUs run faster using the string copy instructions.
116 It is also a lot simpler. Use this when possible */
118 .section .altinstr_replacement,"ax"
119 1: .byte 0xeb /* jmp <disp8> */
120 .byte (memcpy_c - memcpy) - (2f - 1b) /* offset */
123 .section .altinstructions,"a"
127 .byte X86_FEATURE_REP_GOOD
128 .byte .Lfinal - memcpy