15 #include <linux/module.h>
16 #include <asm/mmu_context.h>
17 #include <asm/cacheflush.h>
36 static inline void noop__flush_region(
void *
start,
int size)
40 static inline void cacheop_on_each_cpu(
void (*
func) (
void *
info),
void *info,
111 if (pages_do_alias((
unsigned long)vto, vaddr &
PAGE_MASK) ||
127 if (pages_do_alias((
unsigned long)kaddr, vaddr &
PAGE_MASK))
138 unsigned long pfn =
pte_pfn(pte);
155 if (pages_do_alias(addr, vmaddr)) {
194 struct flusher_data data;
206 struct flusher_data data;
224 struct flusher_data data;
246 c->alias_mask = ((c->
sets - 1) << c->entry_shift) & ~(
PAGE_SIZE - 1);
247 c->n_aliases = c->alias_mask ? (c->alias_mask >>
PAGE_SHIFT) + 1 : 0;
250 static void __init emit_cache_params(
void)
256 printk(
KERN_NOTICE "I-cache : entry_mask=0x%08x alias_mask=0x%08x n_aliases=%d\n",
264 printk(
KERN_NOTICE "D-cache : entry_mask=0x%08x alias_mask=0x%08x n_aliases=%d\n",
277 printk(
KERN_NOTICE "S-cache : entry_mask=0x%08x alias_mask=0x%08x n_aliases=%d\n",
286 unsigned int cache_disabled = 0;