@@ -24,9 +24,7 @@
#define KVMPPC_H_LOGICAL_MEMOP (KVMPPC_HCALL_BASE + 0x1)
/* Client Architecture support */
#define KVMPPC_H_CAS (KVMPPC_HCALL_BASE + 0x2)
-#define KVMPPC_H_RTAS_UPDATE (KVMPPC_HCALL_BASE + 0x3)
-#define KVMPPC_H_REPORT_MC_ERR (KVMPPC_HCALL_BASE + 0x4)
-#define KVMPPC_HCALL_MAX KVMPPC_H_NMI_MCE
+#define KVMPPC_HCALL_MAX KVMPPC_H_CAS
#ifndef __ASSEMBLY__
@@ -172,11 +172,7 @@ rtas-node set-node
: instantiate-rtas ( adr -- entry )
dup rtas-base swap rtas-size move
- dup rtas-entry rtas-base - +
- 2dup hv-rtas-update 0 <> IF
- ." Failed to update RTAS " cr
- THEN
- nip
+ rtas-entry rtas-base - +
;
device-end
@@ -111,12 +111,6 @@ 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);
@@ -30,5 +30,4 @@ cod(RX!)
cod(hv-logical-memop)
cod(hv-cas)
-cod(hv-rtas-update)
cod(get-print-version)
This reverts commit f9a60de30 "Add private HCALL to inform updated RTAS base and entry" as a bigger hammer is coming soon which will pass the entire device tree to QEMU, not just phandles. QEMU has never used the hcall this patch is removing so there will be no compatibility issues. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> --- lib/libhvcall/libhvcall.h | 4 +--- board-qemu/slof/rtas.fs | 6 +----- lib/libhvcall/hvcall.code | 6 ------ lib/libhvcall/hvcall.in | 1 - 4 files changed, 2 insertions(+), 15 deletions(-)