summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/setup_64.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2022-09-26 15:56:18 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2022-09-28 19:22:13 +1000
commitb830c8754e046f96e84da9d3b3e028c4ceef2b18 (patch)
tree99a663084d640cf5ddbfaa76f29e2056f88954b4 /arch/powerpc/kernel/setup_64.c
parent2f5182cffa43f31c241131a2c10a4ecd8e90fb3e (diff)
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
Diffstat (limited to 'arch/powerpc/kernel/setup_64.c')
0 files changed, 0 insertions, 0 deletions