]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9eb5ab57ec5a0b3a313089334fe9e9a536a5ebe3
treedc73617903cec66860d6f44d6e528b24325c5843
parent2dfaa56e8a1d0dbdc8b02d1abaacf22718427ec2
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