/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1994, 95, 96, 97, 98, 99, 2000, 01, 02, 03 by Ralf Baechle * Copyright (C) 1999, 2000, 2001 Silicon Graphics, Inc.
*/ #ifndef _ASM_CACHEFLUSH_H #define _ASM_CACHEFLUSH_H
/* Keep includes the same across arches. */ #include <linux/mm.h> #include <asm/cpu-features.h>
/* Cache flushing: * * - flush_cache_all() flushes entire cache * - flush_cache_mm(mm) flushes the specified mm context's cache lines * - flush_cache_dup mm(mm) handles cache flushing when forking * - flush_cache_page(mm, vmaddr, pfn) flushes a single page * - flush_cache_range(vma, start, end) flushes a range of pages * - flush_icache_range(start, end) flush a range of instructions * - flush_dcache_page(pg) flushes(wback&invalidates) a page for dcache * * MIPS specific flush operations: * * - flush_icache_all() flush the entire instruction cache * - flush_data_cache_page() flushes a page from the data cache * - __flush_icache_user_range(start, end) flushes range of user instructions
*/
/* * This flag is used to indicate that the page pointed to by a pte * is dirty and requires cleaning before returning it to the user.
*/ #define PG_dcache_dirty PG_arch_1
#define ARCH_IMPLEMENTS_FLUSH_KERNEL_VMAP_RANGE 1 /* * For now flush_kernel_vmap_range and invalidate_kernel_vmap_range both do a * cache writeback and invalidate operation.
*/ externvoid (*__flush_kernel_vmap_range)(unsignedlong vaddr, int size);
staticinlinevoid flush_kernel_vmap_range(void *vaddr, int size)
{ if (cpu_has_dc_aliases)
__flush_kernel_vmap_range((unsignedlong) vaddr, size);
}
staticinlinevoid invalidate_kernel_vmap_range(void *vaddr, int size)
{ if (cpu_has_dc_aliases)
__flush_kernel_vmap_range((unsignedlong) vaddr, size);
}
#endif/* _ASM_CACHEFLUSH_H */
Messung V0.5
¤ Dauer der Verarbeitung: 0.18 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.