powerpc: introduce macro LOAD_REG_ADDR_PIC
authorKevin Hao <haokexin@gmail.com>
Tue, 24 Dec 2013 07:12:05 +0000 (15:12 +0800)
committerScott Wood <scottwood@freescale.com>
Thu, 9 Jan 2014 23:52:15 +0000 (17:52 -0600)
commit1c49abec677c7ff495837dbaafad8e12f09c29fc
tree9a1bef7d4684457e5ff5ba6869e17264a2cf0bc3
parent99739611e816716d912ae89a4354237fc39745a6
powerpc: introduce macro LOAD_REG_ADDR_PIC

This is used to get the address of a variable when the kernel is not
running at the linked or relocated address.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/include/asm/ppc_asm.h