OSDN Git Service

powerpc/kexec_file: Enable early kernel OPAL calls
authorHari Bathini <hbathini@linux.ibm.com>
Wed, 29 Jul 2020 11:44:06 +0000 (17:14 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Jul 2020 13:47:55 +0000 (23:47 +1000)
commit2e6bd221d96fcfd9bd1eed5cd9c008e7959daed7
treeaece224f682c4aeb57729b9a2866bed79ccaa823
parentb5667d13be8d0928a02b46e0c6f7ab891d32f697
powerpc/kexec_file: Enable early kernel OPAL calls

Kernels built with CONFIG_PPC_EARLY_DEBUG_OPAL enabled expects r8 & r9
to be filled with OPAL base & entry addresses respectively. Setting
these registers allows the kernel to perform OPAL calls before the
device tree is parsed.

Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Reviewed-by: Thiago Jung Bauermann <bauerman@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/159602303975.575379.5032301944162937479.stgit@hbathini
arch/powerpc/kexec/file_load_64.c
arch/powerpc/purgatory/trampoline_64.S