r4kcache.h (6baaeadae911ba9cedfead881f3bf305a18fd011) r4kcache.h (268a2d60013049cfd9a0aada77284aa6ea8ad26a)
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Inline assembly cache operations.
7 *
8 * Copyright (C) 1996 David S. Miller (davem@davemloft.net)

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

67static inline void flush_scache_line_indexed(unsigned long addr)
68{
69 cache_op(Index_Writeback_Inv_SD, addr);
70}
71
72static inline void flush_icache_line(unsigned long addr)
73{
74 switch (boot_cpu_type()) {
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Inline assembly cache operations.
7 *
8 * Copyright (C) 1996 David S. Miller (davem@davemloft.net)

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

67static inline void flush_scache_line_indexed(unsigned long addr)
68{
69 cache_op(Index_Writeback_Inv_SD, addr);
70}
71
72static inline void flush_icache_line(unsigned long addr)
73{
74 switch (boot_cpu_type()) {
75 case CPU_LOONGSON2:
75 case CPU_LOONGSON2EF:
76 cache_op(Hit_Invalidate_I_Loongson2, addr);
77 break;
78
79 default:
80 cache_op(Hit_Invalidate_I, addr);
81 break;
82 }
83}

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

149})
150
151/*
152 * The next two are for badland addresses like signal trampolines.
153 */
154static inline int protected_flush_icache_line(unsigned long addr)
155{
156 switch (boot_cpu_type()) {
76 cache_op(Hit_Invalidate_I_Loongson2, addr);
77 break;
78
79 default:
80 cache_op(Hit_Invalidate_I, addr);
81 break;
82 }
83}

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

149})
150
151/*
152 * The next two are for badland addresses like signal trampolines.
153 */
154static inline int protected_flush_icache_line(unsigned long addr)
155{
156 switch (boot_cpu_type()) {
157 case CPU_LOONGSON2:
157 case CPU_LOONGSON2EF:
158 return protected_cache_op(Hit_Invalidate_I_Loongson2, addr);
159
160 default:
161#ifdef CONFIG_EVA
162 return protected_cachee_op(Hit_Invalidate_I, addr);
163#else
164 return protected_cache_op(Hit_Invalidate_I, addr);
165#endif

--- 214 unchanged lines hidden ---
158 return protected_cache_op(Hit_Invalidate_I_Loongson2, addr);
159
160 default:
161#ifdef CONFIG_EVA
162 return protected_cachee_op(Hit_Invalidate_I, addr);
163#else
164 return protected_cache_op(Hit_Invalidate_I, addr);
165#endif

--- 214 unchanged lines hidden ---