powerpc/book3e: support CONFIG_RELOCATABLE
authorTiejun Chen <tiejun.chen@windriver.com>
Wed, 7 Oct 2015 03:48:15 +0000 (22:48 -0500)
committerScott Wood <scottwood@freescale.com>
Tue, 27 Oct 2015 23:13:27 +0000 (18:13 -0500)
commit1cb6e064924857e600d13b4f6be5511145ecb560
tree95c33bcfee818811a94def404737f5bfeeb9bd38
parent835c031c98ee1d166c7fdcdbd8c9cc20e05286d4
powerpc/book3e: support CONFIG_RELOCATABLE

book3e is different with book3s since 3s includes the exception
vectors code in head_64.S as it relies on absolute addressing
which is only possible within this compilation unit. So we have
to get that label address with got.

And when boot a relocated kernel, we should reset ipvr properly again
after .relocate.

Signed-off-by: Tiejun Chen <tiejun.chen@windriver.com>
[scottwood: cleanup and ifdef removal]
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/include/asm/exception-64e.h
arch/powerpc/kernel/exceptions-64e.S
arch/powerpc/kernel/head_64.S