Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GTCKx-00026J-Ug for mharc-grub-devel@gnu.org; Fri, 29 Sep 2006 02:59:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GTCKv-00025i-3O for grub-devel@gnu.org; Fri, 29 Sep 2006 02:59:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GTCKt-00024t-Dv for grub-devel@gnu.org; Fri, 29 Sep 2006 02:59:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GTCKt-00024k-6Y for grub-devel@gnu.org; Fri, 29 Sep 2006 02:59:03 -0400 Received: from [212.27.42.35] (helo=smtp5-g19.free.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GTCQ8-00079F-PQ for grub-devel@gnu.org; Fri, 29 Sep 2006 03:04:28 -0400 Received: from imp1-g19.free.fr (imp1-g19.free.fr [212.27.42.1]) by smtp5-g19.free.fr (Postfix) with ESMTP id 4CF1A2646B for ; Fri, 29 Sep 2006 08:59:02 +0200 (CEST) Received: by imp1-g19.free.fr (Postfix, from userid 33) id 353F04892; Fri, 29 Sep 2006 08:59:02 +0200 (CEST) Received: from 129.184.84.11 ([129.184.84.11]) by imp1-g19.free.fr (IMP) with HTTP for ; Fri, 29 Sep 2006 08:59:02 +0200 Message-ID: <1159513142.451cc4361703a@imp1-g19.free.fr> Date: Fri, 29 Sep 2006 08:59:02 +0200 From: tgingold@free.fr To: The development of GRUB 2 References: <1159443706.451bb4fad4e1a@imp6-g19.free.fr> <87zmck15gp.fsf@xs4all.nl> <1159451113.451bd1e94a4d9@imp1-g19.free.fr> <1159506632.21826.32.camel@diesel> In-Reply-To: <1159506632.21826.32.camel@diesel> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 129.184.84.11 Content-Transfer-Encoding: quoted-printable Subject: Re: Grub for ia64 - function descriptors X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2006 06:59:05 -0000 Quoting Hollis Blanchard : > On Thu, 2006-09-28 at 15:45 +0200, tgingold@free.fr wrote: > > > > if (grub_strcmp (name, "grub_mod_init") =3D=3D 0) > > mod->init =3D (void (*) (grub_dl_t)) sym->st_value; > > > > This won't work on ia64 AFAIK. > > Can't this problem be solved with an architecture-specific macro? > > FWIW, 64-bit PowerPC also uses function descriptors. They look somethin= g > like: > long code_address > long table_of_contents > long unused > > The table_of_contents (TOC) value needs to be placed into r2 when > jumping at code_address (and of course the old one needs to be restored > when returning). Indeed, same issue. >I assume IA64 is similar here, and given that, a > module_jump function implemented in assembly by each architecture would > solve this problem. I'd prefer modules to export pointers. Seems to be easier to deal. Tristan.