From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31544 invoked by alias); 25 Apr 2005 16:00:15 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 31214 invoked from network); 25 Apr 2005 16:00:04 -0000 Received: from unknown (HELO SERRANO.CAM.ARTIMI.COM) (217.40.213.68) by sourceware.org with SMTP; 25 Apr 2005 16:00:04 -0000 Received: from 127.0.0.1 (AVG SMTP 7.0.308 [266.10.2]); Mon, 25 Apr 2005 16:58:53 +0100 Received: from mace ([192.168.1.25]) by SERRANO.CAM.ARTIMI.COM with Microsoft SMTPSVC(6.0.3790.211); Mon, 25 Apr 2005 16:58:42 +0100 From: "Dave Korn" To: "'Dave Korn'" , "'Etienne Lorrain'" , "'Nick Clifton'" Cc: , Subject: RE: Binutils 2.15.97 available Date: Mon, 25 Apr 2005 16:00:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit In-Reply-To: Message-ID: X-OriginalArrivalTime: 25 Apr 2005 15:58:42.0072 (UTC) FILETIME=[A70DA180:01C549AF] X-SW-Source: 2005-04/txt/msg00678.txt.bz2 ----Original Message---- >From: Dave Korn >Sent: 25 April 2005 16:45 > ----Original Message---- >> From: Etienne Lorrain >> Sent: 25 April 2005 16:04 >>> asm volatile (" dataPS2 = %c0 ": : "i" (&MOUSE.data.PS2)); > > IIUIC, all you want to do here is initialise an assembler-level variable > with the address of MOUSE.data.PS2 at runtime, yes? BTW, whatever way you do it, I just noticed this bit that confused me: > asm ( > "PS2_mouse_callback: > \n" " .extern _dataPS2 > \n" " movl %eax,_dataPS2 > \n" " movl 16(%esp),%eax > \n" " movl %eax,_dataPS2 + 4 Shouldn't those be indirect references, if dataPS2 contains a pointer to the MOUSE structure? I.e. "movl %eax,[_dataPS2]" and "movl %eax,4[_dataPS2]"? The way you have it to start with reads to me as if you're overwriting the value of the pointer variable and the next 4 bytes after it. I may just be misunderstanding AT+T syntax, though, I only speak intel myself..... cheers, DaveK -- Can't think of a witty .sigline today....