]> 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)
commitdfca59d80dc5cd78c4e40233c69f3282c4a7b4b8
treedc73617903cec66860d6f44d6e528b24325c5843
parent0f57e92a20db61d94e9ee6fa2d6101a4edb96bde
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