From a0fa2cb8ccf0b73cfd3ac01d557401a2303c0de4 Mon Sep 17 00:00:00 2001 From: Thomas Huth Date: Mon, 13 Jan 2014 12:19:03 +0100 Subject: s390x/sclp: Fixed the size of sccb and code parameter The pointer to the SCCB should not be limited to 32 bits only. In contrast to this, the command word parameter is only 32 bits (the upper 32 bits should be ignored). Signed-off-by: Thomas Huth Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- hw/s390x/sclp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw') diff --git a/hw/s390x/sclp.c b/hw/s390x/sclp.c index 4e0c564..6134d4f 100644 --- a/hw/s390x/sclp.c +++ b/hw/s390x/sclp.c @@ -89,7 +89,7 @@ static void sclp_read_cpu_info(SCCB *sccb) sccb->h.response_code = cpu_to_be16(SCLP_RC_NORMAL_READ_COMPLETION); } -static void sclp_execute(SCCB *sccb, uint64_t code) +static void sclp_execute(SCCB *sccb, uint32_t code) { S390SCLPDevice *sdev = get_event_facility(); @@ -107,7 +107,7 @@ static void sclp_execute(SCCB *sccb, uint64_t code) } } -int sclp_service_call(uint32_t sccb, uint64_t code) +int sclp_service_call(uint64_t sccb, uint32_t code) { int r = 0; SCCB work_sccb; -- cgit v1.1