powerpc: Allow relative pointers in bug table entries
authorJordan Niethe <jniethe5@gmail.com>
Tue, 1 Dec 2020 00:52:03 +0000 (11:52 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:20 +0000 (01:01 +1100)
commit1baa1f70ef77c4447628992ad50ab83213e2eb6c
treedc73617903cec66860d6f44d6e528b24325c5843
parentf3e90408019b353fd1fcd338091fb8d3c4a1c1a5
powerpc: Allow relative pointers in bug table entries

This enables GENERIC_BUG_RELATIVE_POINTERS on Power so that 32-bit
offsets are stored in the bug entries rather than 64-bit pointers.
While this doesn't save space for 32-bit machines, use it anyway so
there is only one code path.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201201005203.15210-1-jniethe5@gmail.com
arch/powerpc/Kconfig
arch/powerpc/include/asm/bug.h
arch/powerpc/xmon/xmon.c