mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 4/4] s390: fix inline assembly in appldata.
@ 2005-07-29 17:12 Martin Schwidefsky
  0 siblings, 0 replies; only message in thread
From: Martin Schwidefsky @ 2005-07-29 17:12 UTC (permalink / raw)
  To: akpm, linux-kernel

From: Gerald Schaefer <geraldsc@de.ibm.com>

Fix inline assembly that gets miscompiled by gcc 4.

Signed-off-by: Gerald Schaefer <geraldsc@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

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> ****************************/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-29 17:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-29 17:12 [patch 4/4] s390: fix inline assembly in appldata Martin Schwidefsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®