[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [bug] testandset and cpu_interrupt
From: |
Richard Zidlicky |
Subject: |
Re: [Qemu-devel] [bug] testandset and cpu_interrupt |
Date: |
Wed, 2 Jun 2004 15:47:21 +0200 |
User-agent: |
Mutt/1.4i |
On Tue, Jun 01, 2004 at 03:30:50PM -0700, Piotr Krysik wrote:
> Hello,
>
> Function testandset is referenced by cpu_interrupt,
> spin_lock and spin_trylock (spin_lock and spin_trylock
>
> for CONFIG_USER_ONLY). All these invocations assume
> that testandset should return zero when lock is
> successfully acquired.
>
> I noticed that implementation of testandset for x86
> does opposite, i.e. returns NON-zero when lock is
> successfully acquired.
seems like m68k does the same.
Richard