[patch 4/4] s390: fix inline assembly in appldata.
From: Martin Schwidefsky
Date: Fri Jul 29 2005 - 12:21:09 EST
From: Gerald Schaefer <geraldsc@xxxxxxxxxx>
Fix inline assembly that gets miscompiled by gcc 4.
Signed-off-by: Gerald Schaefer <geraldsc@xxxxxxxxxx>
Signed-off-by: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
diffstat:
arch/s390/appldata/appldata_base.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletion(-)
diff -urpN linux-2.6/arch/s390/appldata/appldata_base.c linux-2.6-patched/arch/s390/appldata/appldata_base.c
--- linux-2.6/arch/s390/appldata/appldata_base.c 2005-06-17 21:48:29.000000000 +0200
+++ linux-2.6-patched/arch/s390/appldata/appldata_base.c 2005-07-29 18:43:40.000000000 +0200
@@ -232,7 +232,11 @@ static int appldata_diag(char record_nr,
ry = -1;
asm volatile(
"diag %1,%0,0xDC\n\t"
- : "=d" (ry) : "d" (&(appldata_parameter_list)) : "cc");
+ : "=d" (ry)
+ : "d" (&appldata_parameter_list),
+ "m" (appldata_parameter_list),
+ "m" (appldata_product_id)
+ : "cc");
return (int) ry;
}
/************************ timer, work, DIAG <END> ****************************/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/