1 /* Written 2003 by Andi Kleen, based on a kernel by Evandro Menezes */
3 #include <linux/linkage.h>
4 #include <asm/dwarf2.h>
15 /* Don't use streaming store because it's better when the target
18 /* Could vary the prefetch distance based on SMP/UP */
23 CFI_ADJUST_CFA_OFFSET 3*8
27 CFI_REL_OFFSET r12, 1*8
29 CFI_REL_OFFSET r13, 2*8
31 movl $(4096/64)-5,%ecx
96 CFI_ADJUST_CFA_OFFSET -3*8
102 /* Some CPUs run faster using the string copy instructions.
103 It is also a lot simpler. Use this when possible */
105 #include <asm/cpufeature.h>
107 .section .altinstr_replacement,"ax"
108 1: .byte 0xeb /* jmp <disp8> */
109 .byte (copy_page_c - copy_page) - (2f - 1b) /* offset */
112 .section .altinstructions,"a"
116 .byte X86_FEATURE_REP_GOOD
117 .byte .Lcopy_page_end - copy_page