···3 * License. See the file "COPYING" in the main directory of this archive4 * for more details.5 *6- * Copyright (C) 1994 - 2003 by Ralf Baechle07 */8#include <linux/init.h>9#include <linux/kernel.h>···88}8990EXPORT_SYMBOL(__flush_dcache_page);00000000000009192void __update_cache(struct vm_area_struct *vma, unsigned long address,93 pte_t pte)
···3 * License. See the file "COPYING" in the main directory of this archive4 * for more details.5 *6+ * Copyright (C) 1994 - 2003, 07 by Ralf Baechle (ralf@linux-mips.org)7+ * Copyright (C) 2007 MIPS Technologies, Inc.8 */9#include <linux/init.h>10#include <linux/kernel.h>···87}8889EXPORT_SYMBOL(__flush_dcache_page);90+91+void __flush_anon_page(struct page *page, unsigned long vmaddr)92+{93+ if (pages_do_alias((unsigned long)page_address(page), vmaddr)) {94+ void *kaddr;95+96+ kaddr = kmap_coherent(page, vmaddr);97+ flush_data_cache_page((unsigned long)kaddr);98+ kunmap_coherent(kaddr);99+ }100+}101+102+EXPORT_SYMBOL(__flush_anon_page);103104void __update_cache(struct vm_area_struct *vma, unsigned long address,105 pte_t pte)