]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix reading and writing SPRs from xmon on 32-bit
authorPaul Mackerras <paulus@samba.org>
Fri, 11 Nov 2005 11:36:34 +0000 (22:36 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 11 Nov 2005 11:36:34 +0000 (22:36 +1100)
commita1fc2a247ce47adf93ccc96ecd9899ce06b0420f
treeaa905c14945e7afcc8f428564a38ee9f8108c87c
parent5d3bd1cc22dd61c558943e0d2d1e09feb8d1e9f5
powerpc: Fix reading and writing SPRs from xmon on 32-bit

When we created the instructions to read/write SPRs in xmon, we were
setting up a ppc64-style procedure descriptor and calling that, which
doesn't work in 32-bit.  For 32-bit a function pointer just points
to the instructions of the function.  This fixes it to do the right
thing for both 32-bit and 64-bit.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/xmon/xmon.c