aboutsummaryrefslogtreecommitdiff
path: root/lib/libhvcall/hvcall.code
diff options
context:
space:
mode:
authorNikunj A. Dadhania <nikunj@linux.vnet.ibm.com>2014-08-25 18:30:10 +0530
committerNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2014-08-27 11:10:45 +0530
commitf9a60de30492863811c2cdf6f28988c9e8a2c3d9 (patch)
treeb7371f4afeb0e41dc90eeac662744882865146e5 /lib/libhvcall/hvcall.code
parent706c69e46b6dd6c1b9d56d22ff555ca1f6d89240 (diff)
downloadSLOF-f9a60de30492863811c2cdf6f28988c9e8a2c3d9.zip
SLOF-f9a60de30492863811c2cdf6f28988c9e8a2c3d9.tar.gz
SLOF-f9a60de30492863811c2cdf6f28988c9e8a2c3d9.tar.bz2
Add private HCALL to inform updated RTAS base and entry
This patch adds a private HCALL to inform qemu the updated rtas-base and rtas-entry address when OS invokes the call "instantiate-rtas". This is required as qemu allocates the error reporting structure in RTAS space upon a machine check exception and hence needs to know the updated RTAS. Enhancements to qemu to handle the private HCALL, prepare error log and invoke machine check notification routine are in a separate patch. Signed-off-by: Nikunj A. Dadhania <nikunj@linux.vnet.ibm.com> Signed-off-by: Aravinda Prasad <aravinda@linux.vnet.ibm.com> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Diffstat (limited to 'lib/libhvcall/hvcall.code')
-rw-r--r--lib/libhvcall/hvcall.code6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libhvcall/hvcall.code b/lib/libhvcall/hvcall.code
index 744469f..0ff50f2 100644
--- a/lib/libhvcall/hvcall.code
+++ b/lib/libhvcall/hvcall.code
@@ -111,6 +111,12 @@ PRIM(hv_X2d_cas)
TOS.u = hv_cas(vec, buf, size);
MIRP
+PRIM(hv_X2d_rtas_X2d_update)
+ unsigned long rtas_entry = TOS.u; POP;
+ unsigned long rtas_base = TOS.u;
+ TOS.u = hv_generic(KVMPPC_H_RTAS_UPDATE, rtas_base, rtas_entry);
+MIRP
+
PRIM(get_X2d_print_X2d_version)
unsigned long addr = TOS.u; POP;
get_print_banner(addr);