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>
16 .tc ppc64_caches[TC],ppc64_caches
24 ALT_FTR_SECTION_END_IFCLR(CPU_FTR_VMX_COPY)
27 ld r10,PPC64_CACHES@toc(r2)
28 lwz r11,DCACHEL1LOGLINESIZE(r10) /* log2 of cache line size */
29 lwz r12,DCACHEL1LINESIZE(r10) /* get cache line size */
39 END_FTR_SECTION_IFSET(CPU_FTR_CP_USE_DCBTZ)
41 srdi r8,r5,7 /* page is copied in 128 byte strides */
42 addi r8,r8,-1 /* one stride copied outside loop */