mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org, Andrew Morton <akpm@zip.com.au>,
	jfs-discussion@www-126.southbury.usf.ibm.com
Subject: [PATCH] rw-semaphore asm constraints patch fix
Date: Mon, 08 Apr 2002 13:43:58 +0100	[thread overview]
Message-ID: <26894.1018269838@warthog.cambridge.redhat.com> (raw)

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");
 }

             reply	other threads:[~2002-04-08 12:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-08 12:43 David Howells [this message]
2002-04-08 15:59 ` Linus Torvalds

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=26894.1018269838@warthog.cambridge.redhat.com \
    --to=dhowells@redhat.com \
    --cc=akpm@zip.com.au \
    --cc=jfs-discussion@www-126.southbury.usf.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®