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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 08:36:34 +0000 (10:36 +0200)
commitbee9bc3e0248be297abc977b19e0aa8378ffa874
treeab0307bc3959a7a43ea7e0c73ff40628f03fdbcd
parent7650522178477a5eef85199a73689b5c3409a783
powerpc/prom_init: Pass the "os-term" message to hypervisor

[ Upstream commit 74bb84e5117146fa73eb9d01305975c53022b3c3 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/kernel/prom_init.c