From owner-cvs-all Thu May 23 8:52:43 2002 Delivered-To: cvs-all@freebsd.org Received: from 12-234-96-171.client.attbi.com (12-234-96-171.client.attbi.com [12.234.96.171]) by hub.freebsd.org (Postfix) with ESMTP id 129EC37B40D; Thu, 23 May 2002 08:52:37 -0700 (PDT) Received: by 12-234-96-171.client.attbi.com (Postfix, from userid 1000) id E186AA900; Thu, 23 May 2002 08:50:32 -0700 (PDT) Date: Thu, 23 May 2002 08:50:32 -0700 From: Jonathan Mini To: John Baldwin Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, Peter Jeremy Subject: Re: cvs commit: src/sys/kern kern_mutex.c Message-ID: <20020523085032.R25907@stylus.haikugeek.com> Mail-Followup-To: John Baldwin , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, Peter Jeremy References: <20020523070814.Q25907@stylus.haikugeek.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from jhb@FreeBSD.org on Thu, May 23, 2002 at 10:24:52AM -0400 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG John Baldwin [jhb@FreeBSD.org] wrote : > > On 23-May-2002 Jonathan Mini wrote: > > John Baldwin [jhb@FreeBSD.org] wrote : > > > >> In Intel's documentation they said that all current look-alikes worked as > >> well. It's the opcode for 'rep mov'. I am curious if some implementations > >> trash %ecx, and if we are paranoid we could always clobber %ecx in the > >> constraints. [ ... ] > > > > The rep prefix doesn't modify any registers. You do need to make > > sure that %ecx was zero when you dispatch a rep mov (unles you're > > dispatching a rep mov $0, %ecx), or you'll get an infinite loop. > > Bah, it's rep nop, not rep mov. Ahh. rep nop makes a lot more sense. > rep does modify %ecx when used with, say > string instructions. It decrements %[e]cx once for each interation. Um.. no. It's the string instruction that decrements cx. rep just, well, repeats. =) -- Jonathan Mini http://www.haikugeek.com "He who is not aware of his ignorance will be only misled by his knowledge." -- Richard Whatley To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message