From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 15 Oct 2002 18:50:54 +0200 (CEST) Received: from buserror-extern.convergence.de ([212.84.236.66]:53509 "EHLO hell") by linux-mips.org with ESMTP id ; Tue, 15 Oct 2002 18:50:53 +0200 Received: from js by hell with local (Exim 3.35 #1 (Debian)) id 181Utz-0005XY-00; Tue, 15 Oct 2002 18:50:39 +0200 Date: Tue, 15 Oct 2002 18:50:39 +0200 From: Johannes Stezenbach To: "Maciej W. Rozycki" Cc: "Kevin D. Kissell" , linux-mips@linux-mips.org Subject: Re: Once again: test_and_set for CPUs w/o LL/SC Message-ID: <20021015165039.GC21220@convergence.de> Mail-Followup-To: Johannes Stezenbach , "Maciej W. Rozycki" , "Kevin D. Kissell" , linux-mips@linux-mips.org References: <01fd01c26e1d$add77240$10eca8c0@grendel> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 440 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: js@convergence.de Precedence: bulk X-list: linux-mips On Tue, Oct 15, 2002 at 05:17:24PM +0200, Maciej W. Rozycki wrote: > On Mon, 7 Oct 2002, Kevin D. Kissell wrote: > > > That's probably going to be a more reliable design, > > though I would still consider leaving the TLB refill handler > > untouched and counting on the fact that k1 must contain > > a non-lethal EntryLo value on return from the exception. > > Well, there is a "nop" just before the "eret" in all R4k-style TLB > exception handlers. I see no problem to use the slot for explicit > clobbering of k0 or k1 with a single instruction like "li" or "lui". Now that you say it it's pretty obvious... Thanks, Johannes