From owner-freebsd-alpha Tue Sep 12 14:43:33 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 0889137B43C for ; Tue, 12 Sep 2000 14:43:31 -0700 (PDT) Received: (from jhb@localhost) by pike.osd.bsdi.com (8.9.3/8.9.3) id OAA08606; Tue, 12 Sep 2000 14:43:24 -0700 (PDT) (envelope-from jhb) From: John Baldwin Message-Id: <200009122143.OAA08606@pike.osd.bsdi.com> Subject: Re: Mutex's aren't recursing In-Reply-To: from Doug Rabson at "Sep 12, 2000 09:32:23 pm" To: Doug Rabson Date: Tue, 12 Sep 2000 14:43:24 -0700 (PDT) Cc: alpha@freebsd.org X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Doug Rabson wrote: > I sent you some mail yesterday about this. I got the constraints wrong for > the inline assembler in atomic_cmpset. I disassembled some of the code in > interrupt.c which is trying to enter the mutex. You can clearly see that > it is misusing t1 as both an input and output to the inline. Thanks! I'll try this out. Also, I just discovered that swtch.s didn't import sched_lock, so cpu_switch was modifying a private copy of sched_lock instead of the global variable (I think). I'll have some feedback on this in just a sec. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message