]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Endian safe trampoline
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 23 Sep 2013 02:04:45 +0000 (12:04 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 11 Oct 2013 05:48:34 +0000 (16:48 +1100)
commit17ea4882d73fd44ed65e626c58ebefd9612e4bd7
treefe31fb5e5be50119f39d2e22953f13d8ace85cb1
parentcdf06e5ebb2cc13c45a0a9f8793a4558947163ea
powerpc: Endian safe trampoline

Create a trampoline that works in either endian and flips to
the expected endian. Use it for primary and secondary thread
entry as well as RTAS and OF call return.

Credit for finding the magic instruction goes to Paul Mackerras

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/ppc_asm.h
arch/powerpc/kernel/entry_64.S
arch/powerpc/kernel/head_64.S