mmu_decl.h (c061b38a3e48663c29611e3b60afffe624d7c830) mmu_decl.h (2b0e86cc5de6dabadc2d64cefa429fc227c8a756)
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 *

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

136extern unsigned long calc_cam_sz(unsigned long ram, unsigned long virt,
137 phys_addr_t phys);
138#ifdef CONFIG_PPC32
139extern void adjust_total_lowmem(void);
140extern int switch_to_as1(void);
141extern void restore_to_as0(int esel, int offset, void *dt_ptr, int bootcpu);
142void create_kaslr_tlb_entry(int entry, unsigned long virt, phys_addr_t phys);
143void reloc_kernel_entry(void *fdt, int addr);
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 *

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

136extern unsigned long calc_cam_sz(unsigned long ram, unsigned long virt,
137 phys_addr_t phys);
138#ifdef CONFIG_PPC32
139extern void adjust_total_lowmem(void);
140extern int switch_to_as1(void);
141extern void restore_to_as0(int esel, int offset, void *dt_ptr, int bootcpu);
142void create_kaslr_tlb_entry(int entry, unsigned long virt, phys_addr_t phys);
143void reloc_kernel_entry(void *fdt, int addr);
144extern int is_second_reloc;
144#endif
145extern void loadcam_entry(unsigned int index);
146extern void loadcam_multi(int first_idx, int num, int tmp_idx);
147
145#endif
146extern void loadcam_entry(unsigned int index);
147extern void loadcam_multi(int first_idx, int num, int tmp_idx);
148
149#ifdef CONFIG_RANDOMIZE_BASE
150void kaslr_early_init(void *dt_ptr, phys_addr_t size);
151#else
152static inline void kaslr_early_init(void *dt_ptr, phys_addr_t size) {}
153#endif
154
148struct tlbcam {
149 u32 MAS0;
150 u32 MAS1;
151 unsigned long MAS2;
152 u32 MAS3;
153 u32 MAS7;
154};
155#endif

--- 19 unchanged lines hidden ---
155struct tlbcam {
156 u32 MAS0;
157 u32 MAS1;
158 unsigned long MAS2;
159 u32 MAS3;
160 u32 MAS7;
161};
162#endif

--- 19 unchanged lines hidden ---