]> Pileus Git - ~andy/linux/commit
powerpc: Remove unreachable relocation on exception handlers
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 25 Jun 2013 07:47:54 +0000 (17:47 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 1 Jul 2013 01:49:37 +0000 (11:49 +1000)
commit1d567cb4bd42d560a7621cac6f6aebe87343689e
tree4a2945649464f66a63258f68e0aad10fc1acc31e
parentdd023217e17e72b46fb4d49c7734c426938c3dba
powerpc: Remove unreachable relocation on exception handlers

We have relocation on exception handlers defined for h_data_storage and
h_instr_storage. However we will never take relocation on exceptions for
these because they can only come from a guest, and we never take
relocation on exceptions when we transition from guest to host.

We also have a handler for hmi_exception (Hypervisor Maintenance) which
is defined in the architecture to never be delivered with relocation on,
see see v2.07 Book III-S section 6.5.

So remove the handlers, leaving a branch to self just to be double extra
paranoid.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
CC: <stable@vger.kernel.org> [v3.9+]
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/exceptions-64s.S