mem.c (9a64e8e0ace51b309fdcff4b4754b3649250382a) mem.c (249ba1ee0f8fcb4e40caa5fbea11dafde201cc46)
1/*
2 * PowerPC version
3 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
4 *
5 * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au)
6 * and Cort Dougan (PReP) (cort@cs.nmt.edu)
7 * Copyright (C) 1996 Paul Mackerras
8 * PPC44x/36-bit changes by Matt Porter (mporter@mvista.com)

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

464 }
465#elif defined(CONFIG_8xx) || defined(CONFIG_PPC64)
466 /* On 8xx there is no need to kmap since highmem is not supported */
467 __flush_dcache_icache(page_address(page));
468#else
469 __flush_dcache_icache_phys(page_to_pfn(page) << PAGE_SHIFT);
470#endif
471}
1/*
2 * PowerPC version
3 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
4 *
5 * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au)
6 * and Cort Dougan (PReP) (cort@cs.nmt.edu)
7 * Copyright (C) 1996 Paul Mackerras
8 * PPC44x/36-bit changes by Matt Porter (mporter@mvista.com)

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

464 }
465#elif defined(CONFIG_8xx) || defined(CONFIG_PPC64)
466 /* On 8xx there is no need to kmap since highmem is not supported */
467 __flush_dcache_icache(page_address(page));
468#else
469 __flush_dcache_icache_phys(page_to_pfn(page) << PAGE_SHIFT);
470#endif
471}
472EXPORT_SYMBOL(flush_dcache_icache_page);
472
473void clear_user_page(void *page, unsigned long vaddr, struct page *pg)
474{
475 clear_page(page);
476
477 /*
478 * We shouldn't have to do this, but some versions of glibc
479 * require it (ld.so assumes zero filled pages are icache clean)

--- 129 unchanged lines hidden ---
473
474void clear_user_page(void *page, unsigned long vaddr, struct page *pg)
475{
476 clear_page(page);
477
478 /*
479 * We shouldn't have to do this, but some versions of glibc
480 * require it (ld.so assumes zero filled pages are icache clean)

--- 129 unchanged lines hidden ---