mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] rw-semaphore asm constraints patch fix
@ 2002-04-08 12:43 David Howells
  2002-04-08 15:59 ` Linus Torvalds
  0 siblings, 1 reply; 2+ messages in thread
From: David Howells @ 2002-04-08 12:43 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel, Andrew Morton, jfs-discussion

Hi Linus,

The attached patch should fix the compile error that asm-i386/rwsem.h causes
with old gcc's whilst maintaining the asm constraints correctly.

David

diff -Nru a/include/asm-i386/rwsem.h b/include/asm-i386/rwsem.h
--- a/include/asm-i386/rwsem.h	Fri Apr  5 16:56:35 2002
+++ b/include/asm-i386/rwsem.h	Fri Apr  5 16:56:35 2002
@@ -164,7 +164,7 @@
 		"  jmp       1b\n"
 		LOCK_SECTION_END
 		"# ending __up_read\n"
-		: /*"+m"(sem->count),*/ "+d"(tmp)
-		: "a"(sem)
+		: "=m"(sem->count), "=d"(tmp)
+		: "0"(sem->count), "1"(tmp), "a"(sem)
 		: "memory", "cc");
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-08 16:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-08 12:43 [PATCH] rw-semaphore asm constraints patch fix David Howells
2002-04-08 15:59 ` Linus Torvalds

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®