]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix HMIs on big-endian with CONFIG_RELOCATABLE=y
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 8 Oct 2018 04:08:31 +0000 (15:08 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 22 Dec 2018 10:43:55 +0000 (21:43 +1100)
commit2676cde11e58a22e2fc7ea9e69593d0ea3202966
treedf273dfd6018e3812046de00f1e894c31cd7751e
parentdd4f93bd65a2ca782b7f7363ec08a6462bcd4f05
powerpc: Fix HMIs on big-endian with CONFIG_RELOCATABLE=y

HMIs will crash the kernel due to

BRANCH_LINK_TO_FAR(hmi_exception_realmode)

Calling into the OPD instead of the actual code.

Fixes: 99f71e08a8b9 ("powerpc/64: CONFIG_RELOCATABLE support for hmi interrupts")
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[mpe: Use DOTSYM() rather than #ifdef]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/exceptions-64s.S