From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id A28323EC6E for ; Tue, 12 Nov 2002 19:32:21 -0500 (EST) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id gAD0WL722105 for axp-list@listman.redhat.com; Tue, 12 Nov 2002 19:32:21 -0500 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id gAD0WLD22101 for ; Tue, 12 Nov 2002 19:32:21 -0500 Received: from mailout07.sul.t-online.com (mailout07.sul.t-online.com [194.25.134.83]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id gAD09Cw24188 for ; Tue, 12 Nov 2002 19:09:12 -0500 Received: from fwd00.sul.t-online.de by mailout07.sul.t-online.com with smtp id 18BlS7-0002Bf-01; Wed, 13 Nov 2002 01:32:19 +0100 Received: from juist (520046482682-0001@[80.131.83.80]) by fmrl00.sul.t-online.com with esmtp id 18BlRw-0pbQ2KC; Wed, 13 Nov 2002 01:32:08 +0100 Received: from falk by juist with local (Exim 3.36 #1 (Debian)) id 18BlRv-00025h-00 for ; Wed, 13 Nov 2002 01:32:07 +0100 X-Face: "iUeUu$b*W_"w?tV83Y3*r:`rh&dRv}$YnZ3,LVeCZSYVuf[Gpo*5%_=/\_!gc_,SS}[~xZ wY77I-M)xHIx:2f56g%/`SOw"Dx%4Xq0&f\Tj~>|QR|vGlU}TBYhiG(K:2 From: Falk Hueffner Date: 13 Nov 2002 01:32:06 +0100 In-Reply-To: Message-ID: <871y5qpawp.fsf@student.uni-tuebingen.de> User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.5 (broccoli) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Sender: 520046482682-0001@t-dialin.net X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: "Peter Petrakis" writes: > asm ("mb;"); You need asm volatile here, or the compiler can optimize it away. > while (temp==0) > { > // ret= ASM("ldl_l %v0,(%a0);", dest); > asm ( "ldl_l %0,(%16)": "=r" (ret): "p"(dest) ); > > temp= ASM("addl %a0,1,%v0;\ > stl_c %v0,(%a1) ;",ret,dest); > } > ASM ("mb;"); > return ret; > } > > The ASM line that is commented out is DU inline ASM, which actually > makes sense. On the next line is my attempt :). I 'seem' to have my > operands correctly constrained, as best as I can figure. The error I > get is. > > ../h/interlock.h:67: invalid `asm': operand number out of range > > What does that mean??? Argument Nr. 16 does not exist, you only mention 2. You probably want something like (untested): long tmp; asm volatile( "ldl_l %2,%1\n" "addl %2,1,%0\n" "stl_c %0,%1\n" : "=r"(ret), "=m"(dest) : "r"(tmp)); -- Falk