powerpc/ps3: Fix lv1 hcall assembly for ELFv2 calling convention
authorNicholas Piggin <npiggin@gmail.com>
Wed, 27 Dec 2023 07:24:03 +0000 (17:24 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 21 Feb 2024 12:14:52 +0000 (23:14 +1100)
commit6735fef14c1f089ae43fd6d43add818b7ff682a8
tree5bd5f1cbf3e55640c3193adc6d8ffef4c9b7ee19
parent6e9de2054eb417d6e05561b19c825c29b424b475
powerpc/ps3: Fix lv1 hcall assembly for ELFv2 calling convention

Stack-passed parameters begin at a different offset in the caller's
stack in the ELFv2 ABI.

Reported-by: Geoff Levand <geoff@infradead.org>
Fixes: 8c5fa3b5c4df ("powerpc/64: Make ELFv2 the default for big-endian builds")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Tested-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231227072405.63751-2-npiggin@gmail.com
arch/powerpc/include/asm/ppc_asm.h
arch/powerpc/platforms/ps3/hvcall.S