SLOF/lib/libhvcall
Nikunj A Dadhania c2a331f275 broken_sc1: check for H_PRIVILEGE
Recently, found that when DAWR was disabled by linux kernel, the hcall started
returning H_UNSUPPORTED, and VM did not boot up as broken_sc1 patched up SC
calls falsely.

Instead of checking for various returns, check if its not in privilege mode and
patch sc1 in that case.

CC: Michael Ellerman <michael@ellerman.id.au>
CC: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
2018-04-04 12:34:45 +10:00
..
Makefile Move the code for rfill into a separate function 2015-12-01 17:02:04 +11:00
brokensc1.c broken_sc1: check for H_PRIVILEGE 2018-04-04 12:34:45 +10:00
hvcall.S Output banner and initial display output in VNC window 2013-12-16 11:56:42 +05:30
hvcall.code fdt: Pass the resulting device tree to QEMU 2017-11-06 13:28:49 +11:00
hvcall.in fdt: Pass the resulting device tree to QEMU 2017-11-06 13:28:49 +11:00
libhvcall.h broken_sc1: check for H_PRIVILEGE 2018-04-04 12:34:45 +10:00
rfill.c Move the code for rfill into a separate function 2015-12-01 17:02:04 +11:00