mmu_decl.h (e0d68273d7069537701bb91c51d90d1e12aacc33) | mmu_decl.h (3e7318584dfec11992f3ac45658c4bc1210b3778) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* 3 * Declarations of procedures and variables shared between files 4 * in arch/ppc/mm/. 5 * 6 * Derived from arch/ppc/mm/init.c: 7 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 8 * --- 97 unchanged lines hidden (view full) --- 106 * architectures. -- Dan 107 */ 108#ifdef CONFIG_PPC32 109extern void MMU_init_hw(void); 110void MMU_init_hw_patch(void); 111unsigned long mmu_mapin_ram(unsigned long base, unsigned long top); 112#endif 113 | 1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* 3 * Declarations of procedures and variables shared between files 4 * in arch/ppc/mm/. 5 * 6 * Derived from arch/ppc/mm/init.c: 7 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 8 * --- 97 unchanged lines hidden (view full) --- 106 * architectures. -- Dan 107 */ 108#ifdef CONFIG_PPC32 109extern void MMU_init_hw(void); 110void MMU_init_hw_patch(void); 111unsigned long mmu_mapin_ram(unsigned long base, unsigned long top); 112#endif 113 |
114#ifdef CONFIG_PPC_FSL_BOOK3E | 114#ifdef CONFIG_PPC_E500 |
115extern unsigned long map_mem_in_cams(unsigned long ram, int max_cam_idx, 116 bool dryrun, bool init); 117#ifdef CONFIG_PPC32 118extern void adjust_total_lowmem(void); 119extern int switch_to_as1(void); 120extern void restore_to_as0(int esel, int offset, void *dt_ptr, int bootcpu); 121void create_kaslr_tlb_entry(int entry, unsigned long virt, phys_addr_t phys); 122void reloc_kernel_entry(void *fdt, int addr); --- 29 unchanged lines hidden (view full) --- 152/* 8xx have LTLB */ 153phys_addr_t v_block_mapped(unsigned long va); 154unsigned long p_block_mapped(phys_addr_t pa); 155#else 156static inline phys_addr_t v_block_mapped(unsigned long va) { return 0; } 157static inline unsigned long p_block_mapped(phys_addr_t pa) { return 0; } 158#endif 159 | 115extern unsigned long map_mem_in_cams(unsigned long ram, int max_cam_idx, 116 bool dryrun, bool init); 117#ifdef CONFIG_PPC32 118extern void adjust_total_lowmem(void); 119extern int switch_to_as1(void); 120extern void restore_to_as0(int esel, int offset, void *dt_ptr, int bootcpu); 121void create_kaslr_tlb_entry(int entry, unsigned long virt, phys_addr_t phys); 122void reloc_kernel_entry(void *fdt, int addr); --- 29 unchanged lines hidden (view full) --- 152/* 8xx have LTLB */ 153phys_addr_t v_block_mapped(unsigned long va); 154unsigned long p_block_mapped(phys_addr_t pa); 155#else 156static inline phys_addr_t v_block_mapped(unsigned long va) { return 0; } 157static inline unsigned long p_block_mapped(phys_addr_t pa) { return 0; } 158#endif 159 |
160#if defined(CONFIG_PPC_BOOK3S_32) || defined(CONFIG_PPC_8xx) || defined(CONFIG_PPC_FSL_BOOK3E) | 160#if defined(CONFIG_PPC_BOOK3S_32) || defined(CONFIG_PPC_8xx) || defined(CONFIG_PPC_E500) |
161void mmu_mark_initmem_nx(void); 162void mmu_mark_rodata_ro(void); 163#else 164static inline void mmu_mark_initmem_nx(void) { } 165static inline void mmu_mark_rodata_ro(void) { } 166#endif 167 168#ifdef CONFIG_PPC_8xx --- 13 unchanged lines hidden --- | 161void mmu_mark_initmem_nx(void); 162void mmu_mark_rodata_ro(void); 163#else 164static inline void mmu_mark_initmem_nx(void) { } 165static inline void mmu_mark_rodata_ro(void) { } 166#endif 167 168#ifdef CONFIG_PPC_8xx --- 13 unchanged lines hidden --- |