powerpc/64s: Refactor initialisation after prom

Move some basic Book3S initialisation after prom to a function similar
to what Book3E looks like. Book3E returns from this function at the
virtual address mapping, and Book3S will do the same in a later change,
so making them look similar helps with that.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230203113858.1152093-3-npiggin@gmail.com
This commit is contained in:
Nicholas Piggin 2023-02-03 21:38:57 +10:00 • committed by Michael Ellerman
commit 58f24eea52