]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Use SWITCH_FRAME_SIZE for prom and rtas entry
authorJoel Stanley <joel@jms.id.au>
Fri, 12 Oct 2018 02:44:06 +0000 (13:14 +1030)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 13 Oct 2018 11:21:25 +0000 (22:21 +1100)
commit32cfaafd2632be634cde522df0a5566cb3da05be
tree538b998d74ac95a0c7dfc6f0e1998c46535c36d4
parent98dc78086c6d90f35b36535eb844b21c33709284
powerpc: Use SWITCH_FRAME_SIZE for prom and rtas entry

Commit 8971ba9098eb ("powerpc/of: Remove useless register save/restore
when calling OF back") removed the saving of srr0 and srr1 when calling
into OpenFirmware. Commit 67c0b1fff487 ("powerpc: Use LOAD_REG_IMMEDIATE
only for constants on 64-bit") did the same for rtas.

This means we don't need to save the extra stack space and can use
the common SWITCH_FRAME_SIZE.

There were already no users of _SRR0 and _SRR1 so we can remove them
too.

Link: https://github.com/linuxppc/linux/issues/83
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/asm-offsets.c
arch/powerpc/kernel/entry_64.S