Re: [4/5] powerpc/livepatch: Add livepatch stack to struct thread_info

From: Michael Ellerman
Date: Tue Apr 19 2016 - 06:17:46 EST


On Wed, 2016-13-04 at 12:53:22 UTC, Michael Ellerman wrote:
> In order to support live patching we need to maintain an alternate
> stack of TOC & LR values. We use the base of the stack for this, and
> store the "live patch stack pointer" in struct thread_info.
>
> Unlike the other fields of thread_info, we can not statically initialise
> that value, so it must be done at run time.
>
> This patch just adds the code to support that, it is not enabled until
> the next patch which actually adds live patch support.
>
> Signed-off-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx>
> Acked-by: Balbir Singh <bsingharora@xxxxxxxxx>

Applied to powerpc next.

https://git.kernel.org/powerpc/c/5d31a96e6c0187f2c5d7004e00

cheers