[PATCH 0/2] powerpc: Fix and enforce distinction between immediates and registers

J. Neuschäfer via B4 Relay devnull+j.ne.posteo.net at kernel.org
Thu Dec 12 18:05:45 CET 2024


This patchset changes the definition r0 etc. to %r0, so that the
assembler can check that registers are only used where expected, and
fixes the fallout.

Signed-off-by: J. Neuschäfer <j.ne at posteo.net>
---
J. Neuschäfer (2):
      powerpc: Fix 0 vs. r0 confusion in X/D-form instructions
      powerpc: Introduce and enforce assembler checks on GPR usage

 arch/powerpc/config.mk           |  2 +-
 arch/powerpc/cpu/mpc83xx/start.S | 72 ++++++++++++++++++++--------------------
 arch/powerpc/cpu/mpc85xx/start.S | 24 +++++++-------
 arch/powerpc/lib/ppccache.S      |  6 ++--
 include/ppc_asm.tmpl             | 66 ++++++++++++++++++------------------
 5 files changed, 85 insertions(+), 85 deletions(-)
---
base-commit: a75acb55442302aeaca993a5c4337fd130766e58
change-id: 20241129-gpr-checks-de006dda819b

Best regards,
-- 
J. Neuschäfer <j.ne at posteo.net>




More information about the U-Boot mailing list