public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Hartmut Schirmer <hartmut.schirmer@arcormail.de>
To: Richard Shih-Ping Chan <cshihpin@dso.org.sg>
Cc: gcc@gcc.gnu.org
Subject: Re: gcc/asm gurus: This linux kernel spinlock code breaks on 3.0.1
Date: Mon, 15 Oct 2001 09:37:00 -0000	[thread overview]
Message-ID: <01101518253700.00377@hallo> (raw)
In-Reply-To: <20011015085648.B13763@cshihpin.dso.org.sg>

On Mon, 15 Oct 2001, Richard Shih-Ping Chan wrote:
[..]
>#define spin_unlock_string \
>	"xchgb %b0, %1" \
>		:"=q" (oldval), "=m" (lock->lock) \
>		:"0" (1) : "memory"

		:"0" (oldval) : "memory"
>
>static inline void spin_unlock(spinlock_t *lock)
>{
>	char oldval;
>#if SPINLOCK_DEBUG
>	if (lock->magic != SPINLOCK_MAGIC)
>		BUG();
>	if (!spin_is_locked(lock))
>		BUG();
>#endif
	oldval = 1;
>	__asm__ __volatile__(
>		spin_unlock_string
>	);
>}

may make it work.

Hartmut

  reply	other threads:[~2001-10-15  9:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-14 17:54 Richard Shih-Ping Chan
2001-10-15  9:37 ` Hartmut Schirmer [this message]
2001-10-16 23:32 ` rth

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=01101518253700.00377@hallo \
    --to=hartmut.schirmer@arcormail.de \
    --cc=cshihpin@dso.org.sg \
    --cc=gcc@gcc.gnu.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).