Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BVHmr-0006fd-OL for qemu-devel@nongnu.org; Tue, 01 Jun 2004 18:31:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BVHmn-0006fR-TT for qemu-devel@nongnu.org; Tue, 01 Jun 2004 18:31:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BVHmn-0006fO-P9 for qemu-devel@nongnu.org; Tue, 01 Jun 2004 18:31:09 -0400 Received: from [216.109.118.103] (helo=web60208.mail.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1BVHmV-0005Me-Jm for qemu-devel@nongnu.org; Tue, 01 Jun 2004 18:30:51 -0400 Message-ID: <20040601223050.84871.qmail@web60208.mail.yahoo.com> Date: Tue, 1 Jun 2004 15:30:50 -0700 (PDT) From: Piotr Krysik MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] [bug] testandset and cpu_interrupt Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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/