]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/livepatch: Add livepatch stack to struct thread_info
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 24 Mar 2016 11:04:04 +0000 (22:04 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 14 Apr 2016 05:47:06 +0000 (15:47 +1000)
commit0e93385f792e61e701991a7806c680f5464e8164
tree5d2bf3efea21bedf6a0df86b66f4c420fd06190e
parent8be6ff262bae16ae2df060a21868490a95d63c72
powerpc/livepatch: Add livepatch stack to struct thread_info

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@ellerman.id.au>
Acked-by: Balbir Singh <bsingharora@gmail.com>
arch/powerpc/include/asm/livepatch.h
arch/powerpc/include/asm/thread_info.h
arch/powerpc/kernel/irq.c
arch/powerpc/kernel/process.c
arch/powerpc/kernel/setup_64.c