From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keith Owens Date: Wed, 13 Jun 2001 16:35:59 +0000 Subject: Re: [Linux-ia64] modules external refs Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org On Wed, 13 Jun 2001 17:04:51 +0200, gerard wrote: >I have put a printk in the second module trying to access the controler >in which I print the address of the function it tries to call, it >corresponds to what >I see in /proc/ksyms, but when I call that function, I get a >Unimplemented Instruction Address fault . IA64 function pointers do not point to the function, instead they point to a descriptor area which contains data about the function, including its real address. If you are calling direct to the address in ksyms then you are bypassing the function descriptor and r1 will contain an incorrect value. Also make sure that your modules are compiled with the correct options, compile an existing module and copy the flags.