]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/6xx: Don't use SPRN_SPRG2 for storing stack pointer while in RTAS
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 21 Feb 2019 10:37:54 +0000 (10:37 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 21 Feb 2019 13:10:16 +0000 (00:10 +1100)
commit5a559858e118e3be421e42853134def9ae519c1c
tree145c1adc8829075f35bbf51742de3a4430259f0f
parentb7a5997f667d53a2bd25126718c16134ee3e3303
powerpc/6xx: Don't use SPRN_SPRG2 for storing stack pointer while in RTAS

When calling RTAS, the stack pointer is stored in SPRN_SPRG2
in order to be able to restore it in case of machine check in RTAS.

As machine check is not a perfomance critical path, this patch
frees SPRN_SPRG2 by using a field in thread struct instead.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/processor.h
arch/powerpc/include/asm/reg.h
arch/powerpc/kernel/asm-offsets.c
arch/powerpc/kernel/entry_32.S
arch/powerpc/kernel/head_32.S