powerpc/prom_init: Pass the "os-term" message to hypervisor
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 12 Mar 2020 07:44:04 +0000 (18:44 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 25 Mar 2020 01:07:58 +0000 (12:07 +1100)
commit74bb84e5117146fa73eb9d01305975c53022b3c3
tree0a1c3f9ab9ca0280d806e67e376920ea18caca0d
parentb4f00d5b2098320a0d4c4a6d31099bc0c9a85b02
powerpc/prom_init: Pass the "os-term" message to hypervisor

The "os-term" RTAS calls has one argument with a message address of OS
termination cause. rtas_os_term() already passes it but the recently
added prom_init's version of that missed it; it also does not fill
args correctly.

This passes the message address and initializes the number of arguments.

Fixes: 6a9c930bd775 ("powerpc/prom_init: Add the ESM call to prom_init")
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200312074404.87293-1-aik@ozlabs.ru
arch/powerpc/kernel/prom_init.c