]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64: avoid using r13 in relocate
authorNicholas Piggin <npiggin@gmail.com>
Mon, 26 Sep 2022 05:56:18 +0000 (15:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Sep 2022 09:22:13 +0000 (19:22 +1000)
commite5bcd6c4ac465cf32de6bedcf7df30f29dd18405
tree99a663084d640cf5ddbfaa76f29e2056f88954b4
parentb62296d9cf4dabfe390fe164d37c8e38b17e5644
powerpc/64: avoid using r13 in relocate

relocate() uses r13 in early boot before it is used for the paca. Use
a different register for this so r13 is kept unchanged until it is
set to the paca pointer.

Avoid r14 as well while we're here, there's no reason not to use the
volatile registers which is a bit less surprising, and r14 could be used
as another fixed reg one day.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220926055620.2676869-4-npiggin@gmail.com
arch/powerpc/kernel/reloc_64.S