mem.c (d70522fc541224b8351ac26f4765f2c6268f8d72) | mem.c (b033767848c4115e486b1a51946de3bee2ac0fa6) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * PowerPC version 4 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 5 * 6 * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au) 7 * and Cort Dougan (PReP) (cort@cs.nmt.edu) 8 * Copyright (C) 1996 Paul Mackerras --- 8 unchanged lines hidden (view full) --- 17#include <linux/suspend.h> 18#include <linux/dma-direct.h> 19 20#include <asm/machdep.h> 21#include <asm/rtas.h> 22#include <asm/kasan.h> 23#include <asm/svm.h> 24#include <asm/mmzone.h> | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * PowerPC version 4 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 5 * 6 * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au) 7 * and Cort Dougan (PReP) (cort@cs.nmt.edu) 8 * Copyright (C) 1996 Paul Mackerras --- 8 unchanged lines hidden (view full) --- 17#include <linux/suspend.h> 18#include <linux/dma-direct.h> 19 20#include <asm/machdep.h> 21#include <asm/rtas.h> 22#include <asm/kasan.h> 23#include <asm/svm.h> 24#include <asm/mmzone.h> |
25#include <asm/code-patching.h> |
|
25 26#include <mm/mmu_decl.h> 27 28unsigned long long memory_limit; 29 30unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)] __page_aligned_bss; 31EXPORT_SYMBOL(empty_zero_page); 32 --- 273 unchanged lines hidden (view full) --- 306#endif 307#endif /* CONFIG_PPC32 */ 308} 309 310void free_initmem(void) 311{ 312 ppc_md.progress = ppc_printk_progress; 313 mark_initmem_nx(); | 26 27#include <mm/mmu_decl.h> 28 29unsigned long long memory_limit; 30 31unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)] __page_aligned_bss; 32EXPORT_SYMBOL(empty_zero_page); 33 --- 273 unchanged lines hidden (view full) --- 307#endif 308#endif /* CONFIG_PPC32 */ 309} 310 311void free_initmem(void) 312{ 313 ppc_md.progress = ppc_printk_progress; 314 mark_initmem_nx(); |
315 static_branch_enable(&init_mem_is_free); |
|
314 free_initmem_default(POISON_FREE_INITMEM); 315} 316 317/* 318 * System memory should not be in /proc/iomem but various tools expect it 319 * (eg kdump). 320 */ 321static int __init add_system_ram_resources(void) --- 53 unchanged lines hidden --- | 316 free_initmem_default(POISON_FREE_INITMEM); 317} 318 319/* 320 * System memory should not be in /proc/iomem but various tools expect it 321 * (eg kdump). 322 */ 323static int __init add_system_ram_resources(void) --- 53 unchanged lines hidden --- |