From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from atrey.karlin.mff.cuni.cz (atrey.karlin.mff.cuni.cz [195.113.26.193]) by ozlabs.org (Postfix) with ESMTP id 5F072B6EEB for ; Tue, 16 Feb 2010 07:49:39 +1100 (EST) Date: Mon, 15 Feb 2010 21:28:54 +0100 From: Pavel Machek To: Benjamin Herrenschmidt Subject: Re: register long sp asm("r1") incorrect Message-ID: <20100215202854.GA21601@elf.ucw.cz> References: <20100209152444.GA30176@atrey.karlin.mff.cuni.cz> <1265866273.16346.34.camel@pasglop> <20100215073405.GB20456@atrey.karlin.mff.cuni.cz> <1266263992.16346.125.camel@pasglop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1266263992.16346.125.camel@pasglop> Cc: linuxppc-dev@ozlabs.org, paulus@samba.org, kernel list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue 2010-02-16 06:59:52, Benjamin Herrenschmidt wrote: > On Mon, 2010-02-15 at 08:34 +0100, Pavel Machek wrote: > > > On Tue, 2010-02-09 at 16:24 +0100, Pavel Machek wrote: > > > > ...according to gcc docs, sp should be global, or placement in > > > > register is not guaranteed (except at asm boundaries, but there > > are > > > > none). > > > > > > Sorry I'm not sure I grok what you mean. > > > > Well, according to gcc doscs and my experience, local "register int > > __asm()" variables only work by accident (or not at all). > > Hrm... we definitely rely on that for our thread_info() access, and so > far it has worked well for us, but I'll poke our gcc folks just in case. Thanks, and let me know about any results. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html