1 #include <linux/linkage.h>
2 #include <asm/export.h>
5 * Most CPUs support enhanced REP MOVSB/STOSB instructions. It is
6 * recommended to use this when possible and we do use them by default.
7 * If enhanced REP MOVSB/STOSB is not available, try to use fast string.
8 * Otherwise, use original.
20 ENDPROC(clear_page_rep)
21 EXPORT_SYMBOL_GPL(clear_page_rep)
23 ENTRY(clear_page_orig)
29 #define PUT(x) movq %rax,x*8(%rdi)
42 ENDPROC(clear_page_orig)
43 EXPORT_SYMBOL_GPL(clear_page_orig)
45 ENTRY(clear_page_erms)
50 ENDPROC(clear_page_erms)
51 EXPORT_SYMBOL_GPL(clear_page_erms)