Skip to content

powerpc/64: avoid GOT addressing, don't put data in TOC

Nicholas Piggin linuxppc-dev 2 versions – Applied

Status from this message: Applied to powerpc/next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 3 repliesApplied
  2. v15 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Use "REGS" stack frame marker for 64-bit, leaving 32-bit unchanged.
- Fix PPC64 32-bit boot wrapper compile.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5powerpc/64: use 32-bit immediate for STACK_FRAME_REGS_MARKERarch/powerpc/include/asm/ptrace.h arch/powerpc/kernel/entry_32.S arch/powerpc/kernel/exceptions-64e.S +3 more+10 -232 replies
2/5powerpc/64: asm use consistent global variable declaration and accessarch/powerpc/boot/opal-calls.S arch/powerpc/boot/ppc_asm.h arch/powerpc/kernel/interrupt_64.S +8 more+32 -510 replies
3/5powerpc/64: switch asm helpers from GOT to TOC relative addressingarch/powerpc/boot/ppc_asm.h arch/powerpc/include/asm/ppc_asm.h+4 -20 replies
4/5powerpc/64: provide a helper macro to load r2 with the kernel TOCarch/powerpc/include/asm/ppc_asm.h arch/powerpc/kernel/exceptions-64e.S arch/powerpc/kernel/exceptions-64s.S +10 more+32 -270 replies
5/5powerpc/64e: provide an addressing macro for use with TOC in alternate registerarch/powerpc/include/asm/ppc_asm.h arch/powerpc/kernel/exceptions-64e.S arch/powerpc/mm/nohash/tlb_low_64e.S+19 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/5] powerpc/64: avoid GOT addressing, don't put data in TOC

This is a cleaned up set of the initial prep patches from the pcrel series, dealing with regularising addressing variables from asm and using helper macros more consistently.

Changes since v1:
- Use "REGS" stack frame marker for 64-bit, leaving 32-bit unchanged.
- Fix PPC64 32-bit boot wrapper compile.

Nicholas Piggin (5):
powerpc/64: use 32-bit immediate for STACK_FRAME_REGS_MARKER powerpc/64: asm use consistent global variable declaration and access powerpc/64: switch asm helpers from GOT to TOC relative addressing powerpc/64: provide a helper macro to load r2 with the kernel TOC powerpc/64e: provide an addressing macro for use with TOC in alternate
register

 arch/powerpc/boot/opal-calls.S                |  6 ++--
 arch/powerpc/boot/ppc_asm.h                   | 10 ++++++
 arch/powerpc/include/asm/ppc_asm.h            | 20 ++++++++++-
 arch/powerpc/include/asm/ptrace.h             |  4 +--
 arch/powerpc/kernel/entry_32.S                |  6 ++--
 arch/powerpc/kernel/exceptions-64e.S          | 34 ++++++++-----------
 arch/powerpc/kernel/exceptions-64s.S          |  8 ++---
 arch/powerpc/kernel/head_64.S                 | 11 ++----
 arch/powerpc/kernel/interrupt_64.S            | 28 +++++----------
 arch/powerpc/kernel/optprobes_head.S          |  2 +-
 arch/powerpc/kernel/swsusp_asm64.S            | 16 +++------
 arch/powerpc/kernel/trace/ftrace_low.S        |  2 +-
 arch/powerpc/kernel/trace/ftrace_mprofile.S   |  6 ++--
 arch/powerpc/kernel/vector.S                  | 15 ++++----
 arch/powerpc/kvm/book3s_64_entry.S            |  2 +-
 arch/powerpc/kvm/book3s_hv_rmhandlers.S       |  4 +--
 arch/powerpc/kvm/tm.S                         |  2 +-
 arch/powerpc/lib/copypage_64.S                |  7 +---
 arch/powerpc/lib/string_64.S                  |  7 +---
 arch/powerpc/mm/nohash/tlb_low_64e.S          |  4 +--
 arch/powerpc/perf/bhrb.S                      |  2 +-
 .../powerpc/platforms/powernv/opal-wrappers.S |  2 +-
 arch/powerpc/platforms/pseries/hvCall.S       |  4 +--
 arch/powerpc/xmon/spr_access.S                |  4 +--
 24 files changed, 96 insertions(+), 110 deletions(-)
Signature · 1 line
2.37.2