powerpc: Fix boot problem due to AT_BASE_PLATFORM change

Commit 9115d13453dee22473a1e8cacc90a8d64a9c4bc9 ("powerpc: Enable
AT_BASE_PLATFORM aux vector") broke boot on 32-bit powerpc systems; we
have to use PTRRELOC to initialize powerpc_base_platform this early in
boot.

Bug reported by Jon Smirl.

Signed-off-by: Nathan Lynch <ntl@pobox.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Nathan Lynch and committed by
Benjamin Herrenschmidt
fc532f81 5047887c

+2 -2
+2 -2
arch/powerpc/kernel/cputable.c
··· 1660 1660 * Set the base platform string once; assumes 1661 1661 * we're called with real pvr first. 1662 1662 */ 1663 - if (powerpc_base_platform == NULL) 1664 - powerpc_base_platform = t->platform; 1663 + if (*PTRRELOC(&powerpc_base_platform) == NULL) 1664 + *PTRRELOC(&powerpc_base_platform) = t->platform; 1665 1665 1666 1666 #if defined(CONFIG_PPC64) || defined(CONFIG_BOOKE) 1667 1667 /* ppc64 and booke expect identify_cpu to also call