]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/xmon: Don't use ld on 32-bit
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 9 Sep 2016 04:01:07 +0000 (14:01 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Oct 2016 07:45:21 +0000 (03:45 -0400)
commited04eda809930530e8900928d490eee4c67b9212
tree8d2e4425e274d710d171a2989762678e9a0a5778
parentacc97010548c073ccfc4f68073bd22fc65d1cab6
powerpc/xmon: Don't use ld on 32-bit

commit b42d9023a31e384504f5b53fc9a437d5536a3f63 upstream.

In commit 31cdd0c39c75 ("powerpc/xmon: Fix SPR read/write commands and
add command to dump SPRs") I added two uses of the "ld" instruction in
spr_access.S. "ld" is a 64-bit instruction, so shouldn't be used on
32-bit CPUs.

Replace it with PPC_LL which is a macro that gives us either "ld" or
"lwz" depending on whether we're 64 or 32-bit.

Fixes: 31cdd0c39c75 ("powerpc/xmon: Fix SPR read/write commands and add command to dump SPRs")
Reported-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/xmon/spr_access.S