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
23 ld r10,PPC64_CACHES@toc(r2)
24 lwz r11,DCACHEL1LOGLINESIZE(r10) /* log2 of cache line size */
25 lwz r12,DCACHEL1LINESIZE(r10) /* get cache line size */
35 END_FTR_SECTION_IFSET(CPU_FTR_CP_USE_DCBTZ)
37 srdi r8,r5,7 /* page is copied in 128 byte strides */
38 addi r8,r8,-1 /* one stride copied outside loop */