linux-stable/arch/powerpc/mm/nohash
Nicholas Piggin 3569d84bb2 powerpc/64e: provide an addressing macro for use with TOC in alternate register
The interrupt entry code carefully saves a minimal number of registers,
so in some places the TOC is required, it is loaded into a different
register, so provide a macro that can supply an alternate TOC register.

This continues to use got addressing because TOC-relative results in
"got/toc optimization is not supported" messages by the linker. Having
r2 be one of the saved registers and using that for TOC addressing may
be the best way to avoid that and switch this to TOC addressing.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220926034057.2360083-6-npiggin@gmail.com
2022-09-28 19:22:12 +10:00
..
8xx.c powerpc/32: Call mmu_mark_initmem_nx() regardless of data block mapping. 2022-07-27 21:36:05 +10:00
40x.c powerpc/32: Remove __map_without_ltlbs 2022-06-29 16:59:06 +10:00
44x.c powerpc/mm: Add __init attribute to eligible functions 2021-12-23 22:33:11 +11:00
book3e_pgtable.c powerpc/book3e: Fix PUD allocation size in map_kernel_page() 2022-06-24 12:42:45 +10:00
e500.c powerpc: Remove CONFIG_PPC_FSL_BOOK3E 2022-09-26 23:00:13 +10:00
e500_hugetlbpage.c powerpc: Remove CONFIG_PPC_FSL_BOOK3E 2022-09-26 23:00:13 +10:00
kaslr_booke.c powerpc/book3e: get rid of #include <generated/compile.h> 2022-06-06 10:23:33 +10:00
kup.c powerpc/kuap: Wire-up KUAP on 40x 2021-12-09 22:41:20 +11:00
Makefile powerpc: Remove CONFIG_PPC_FSL_BOOK3E 2022-09-26 23:00:13 +10:00
mmu_context.c powerpc/mm: Make slice specific to book3s/64 2022-05-05 22:11:57 +10:00
tlb.c powerpc: Remove impossible mmu_psize_defs[] on nohash 2022-09-26 23:00:14 +10:00
tlb_low.S powerpc: Remove CONFIG_PPC_FSL_BOOK3E 2022-09-26 23:00:13 +10:00
tlb_low_64e.S powerpc/64e: provide an addressing macro for use with TOC in alternate register 2022-09-28 19:22:12 +10:00