cache-v6.S (020abf03cd659388f94cb328e1e1df0656e0d7ff) cache-v6.S (a248b13b21ae00b97638b4f435c8df3075808b5d)
1/*
2 * linux/arch/arm/mm/cache-v6.S
3 *
4 * Copyright (C) 2001 Deep Blue Solutions Ltd.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 162 unchanged lines hidden (view full) ---

171 * Ensure that the data held in the page kaddr is written back
172 * to the page in question.
173 *
174 * - addr - kernel address
175 * - size - region size
176 */
177ENTRY(v6_flush_kern_dcache_area)
178 add r1, r0, r1
1/*
2 * linux/arch/arm/mm/cache-v6.S
3 *
4 * Copyright (C) 2001 Deep Blue Solutions Ltd.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 162 unchanged lines hidden (view full) ---

171 * Ensure that the data held in the page kaddr is written back
172 * to the page in question.
173 *
174 * - addr - kernel address
175 * - size - region size
176 */
177ENTRY(v6_flush_kern_dcache_area)
178 add r1, r0, r1
179 bic r0, r0, #D_CACHE_LINE_SIZE - 1
1791:
180#ifdef HARVARD_CACHE
181 mcr p15, 0, r0, c7, c14, 1 @ clean & invalidate D line
182#else
183 mcr p15, 0, r0, c7, c15, 1 @ clean & invalidate unified line
184#endif
185 add r0, r0, #D_CACHE_LINE_SIZE
186 cmp r0, r1

--- 158 unchanged lines hidden ---
1801:
181#ifdef HARVARD_CACHE
182 mcr p15, 0, r0, c7, c14, 1 @ clean & invalidate D line
183#else
184 mcr p15, 0, r0, c7, c15, 1 @ clean & invalidate unified line
185#endif
186 add r0, r0, #D_CACHE_LINE_SIZE
187 cmp r0, r1

--- 158 unchanged lines hidden ---