OSDN Git Service

powerpc/64: Move initial base and TOC pointer calculation
authorNicholas Piggin <npiggin@gmail.com>
Sat, 8 Apr 2023 02:17:47 +0000 (12:17 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 20 Apr 2023 02:23:14 +0000 (12:23 +1000)
commit4f18b9e6ca58440394e86a53bf1be0d8a1920bcd
tree1f06eacba90d74f6513fd9a65d0323244738ed51
parent40f7b523e31fd68163d9dfe639f2f34b6a726ecd
powerpc/64: Move initial base and TOC pointer calculation

A later change moves the non-prom case to run at the virtual address
earlier, which calls for virtual TOC and kernel base. Split these two
calculations for prom and non-prom to make that change simpler.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Retain relative_toc call for start_initialization_book3e]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230408021752.862660-2-npiggin@gmail.com
arch/powerpc/kernel/head_64.S