From owner-cvs-all Thu Apr 19 9:45:46 2001 Delivered-To: cvs-all@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 2AF7C37B443; Thu, 19 Apr 2001 09:45:32 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f3JGjGG88958; Thu, 19 Apr 2001 09:45:16 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Thu, 19 Apr 2001 09:44:36 -0700 (PDT) From: John Baldwin To: Doug Rabson Subject: RE: cvs commit: src/sys/ia64/ia64 vm_machdep.c Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 19-Apr-01 Doug Rabson wrote: > On Thu, 19 Apr 2001, John Baldwin wrote: > >> >> On 19-Apr-01 Doug Rabson wrote: >> > dfr 2001/04/19 05:35:48 PDT >> > >> > Modified files: >> > sys/ia64/ia64 vm_machdep.c >> > Log: >> > Don't unwrap the function descriptor used as the callout argument to >> > fork_exit(). The MI version of fork_exit() needs a real function >> > descriptor, not a simple function pointer. >> >> Oh, whoops. Looks like I need to read up on ia64 calling conventions some >> more >> before doing low-level ia64 hacking in the future. Does fork_trampoline() >> actually work right? > > It does now. Basically 'function pointers' on ia64 are actually pointers > to a little two-element structure with the real function pointer and a > value for 'gp'. This allows shared libraries/kernel modules to have their > own global object table. > > With a slight adjustment to imgact_elf.c to fall back to the right ABI, I > can get to single user mode again. Very, very cool! Now it's time to get signal handling working. :) It would also be nice if we could get an updated toolchain so we don't need the ELFABI hack as well. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message