2 * Copyright (C) 2008 Mark Nelson, IBM Corp.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
10 #include <asm/processor.h>
11 #include <asm/ppc_asm.h>
12 #include <asm/asm-offsets.h>
13 #include <asm/export.h>
17 .tc ppc64_caches[TC],ppc64_caches
20 _GLOBAL_TOC(copy_page)
25 ALT_FTR_SECTION_END_IFCLR(CPU_FTR_VMX_COPY)
28 ld r10,PPC64_CACHES@toc(r2)
29 lwz r11,DCACHEL1LOGBLOCKSIZE(r10) /* log2 of cache block size */
30 lwz r12,DCACHEL1BLOCKSIZE(r10) /* get cache block size */
40 END_FTR_SECTION_IFSET(CPU_FTR_CP_USE_DCBTZ)
42 srdi r8,r5,7 /* page is copied in 128 byte strides */
43 addi r8,r8,-1 /* one stride copied outside loop */
114 EXPORT_SYMBOL(copy_page)