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.
9 #include <asm/processor.h>
10 #include <asm/ppc_asm.h>
11 #include <asm/asm-offsets.h>
15 .tc ppc64_caches[TC],ppc64_caches
20 li r5,4096 /* 4K page size */
22 ld r10,PPC64_CACHES@toc(r2)
23 lwz r11,DCACHEL1LOGLINESIZE(r10) /* log2 of cache line size */
24 lwz r12,DCACHEL1LINESIZE(r10) /* get cache line size */
34 END_FTR_SECTION_IFSET(CPU_FTR_CP_USE_DCBTZ)
36 srdi r8,r5,7 /* page is copied in 128 byte strides */
37 addi r8,r8,-1 /* one stride copied outside loop */