ARM: PIE: Add macro for generating PIE resume trampoline
authorRuss Dill <Russ.Dill@ti.com>
Tue, 17 Sep 2013 09:48:24 +0000 (02:48 -0700)
committer黄涛 <huangtao@rock-chips.com>
Thu, 21 Nov 2013 05:39:22 +0000 (13:39 +0800)
commit5b4bb81c25ff3ccaaaab565264eb08db564d1c2a
tree30f47a7fc033824752a3bc9dbce3089614a43abc
parentf4c49be4311c78077ecff2ab7f7b315fdd61df72
ARM: PIE: Add macro for generating PIE resume trampoline

Add a helper that generates a short snippet of code that updates PIE
relocations, loads the stack pointer and calls a C (or asm) function.
The code gets placed into a PIE section.

Signed-off-by: Russ Dill <Russ.Dill@ti.com>
arch/arm/include/asm/suspend.h