From 3ada6b113726ae554154f6e5367bf4b4ed110bbe Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy Date: Tue, 19 Nov 2013 15:28:55 +1100 Subject: spapr-rtas: add ibm, (get|set)-system-parameter This adds very basic handlers for ibm,get-system-parameter and ibm,set-system-parameter RTAS calls. The only parameter handled at the moment is "platform-processor-diagnostics-run-mode" which is always disabled and does not support changing. This is expected to make "ppc64_cpu --run-mode=1" happy. Signed-off-by: Alexey Kardashevskiy [agraf: s/papameter/parameter/g] Signed-off-by: Alexander Graf --- include/hw/ppc/spapr.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/hw/ppc') diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h index 085cfa7a4c..b2f11e9a2c 100644 --- a/include/hw/ppc/spapr.h +++ b/include/hw/ppc/spapr.h @@ -338,6 +338,8 @@ static inline int spapr_allocate_lsi(int hint) #define RTAS_OUT_HW_ERROR -1 #define RTAS_OUT_BUSY -2 #define RTAS_OUT_PARAM_ERROR -3 +#define RTAS_OUT_NOT_SUPPORTED -3 +#define RTAS_OUT_NOT_AUTHORIZED -9002 static inline uint64_t ppc64_phys_to_real(uint64_t addr) { -- cgit v1.2.3