qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [bug] testandset and cpu_interrupt


From: Piotr Krysik
Subject: [Qemu-devel] [bug] testandset and cpu_interrupt
Date: Tue, 1 Jun 2004 15:30:50 -0700 (PDT)

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.

Before fixing the problem, it would be useful to check

implementation of testandset for other architectures, 
which I'm unable to do.


I'm very impressed with QEMU. Thanks for excellent 
work,

Piotrek



        
                
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]