mem.c (a61944c251c3e68c4bbf6eb96ff61c7b286351c5) mem.c (307cfe715344e15eda12dad3bb14f794115ca823)
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)

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

377 ioremap_bot, IOREMAP_TOP);
378 pr_info(" * 0x%08lx..0x%08lx : vmalloc & ioremap\n",
379 VMALLOC_START, VMALLOC_END);
380#endif /* CONFIG_PPC32 */
381
382 mem_init_done = 1;
383}
384
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)

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

377 ioremap_bot, IOREMAP_TOP);
378 pr_info(" * 0x%08lx..0x%08lx : vmalloc & ioremap\n",
379 VMALLOC_START, VMALLOC_END);
380#endif /* CONFIG_PPC32 */
381
382 mem_init_done = 1;
383}
384
385#ifdef CONFIG_BLK_DEV_INITRD
386void __init free_initrd_mem(unsigned long start, unsigned long end)
387{
388 if (start >= end)
389 return;
390
391 start = _ALIGN_DOWN(start, PAGE_SIZE);
392 end = _ALIGN_UP(end, PAGE_SIZE);
393 pr_info("Freeing initrd memory: %ldk freed\n", (end - start) >> 10);
394
395 for (; start < end; start += PAGE_SIZE) {
396 ClearPageReserved(virt_to_page(start));
397 init_page_count(virt_to_page(start));
398 free_page(start);
399 totalram_pages++;
400 }
401}
402#endif
403
385/*
386 * This is called when a page has been modified by the kernel.
387 * It just marks the page as not i-cache clean. We do the i-cache
388 * flush later when the page is given to a user process, if necessary.
389 */
390void flush_dcache_page(struct page *page)
391{
392 if (cpu_has_feature(CPU_FTR_COHERENT_ICACHE))

--- 111 unchanged lines hidden ---
404/*
405 * This is called when a page has been modified by the kernel.
406 * It just marks the page as not i-cache clean. We do the i-cache
407 * flush later when the page is given to a user process, if necessary.
408 */
409void flush_dcache_page(struct page *page)
410{
411 if (cpu_has_feature(CPU_FTR_COHERENT_ICACHE))

--- 111 unchanged lines hidden ---