From owner-freebsd-mips@FreeBSD.ORG Wed Jul 28 23:49:30 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54E16106564A; Wed, 28 Jul 2010 23:49:30 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 10D898FC0A; Wed, 28 Jul 2010 23:49:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o6SNkWrg001399; Wed, 28 Jul 2010 17:46:33 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 28 Jul 2010 17:46:53 -0600 (MDT) Message-Id: <20100728.174653.956847443285364686.imp@bsdimp.com> To: jmallett@freebsd.org From: "M. Warner Losh" In-Reply-To: References: X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: Support for 64bit userspace. X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jul 2010 23:49:30 -0000 In message: Juli Mallett writes: : Hi JC, : = : On Wed, Jul 28, 2010 at 16:32, Jayachandran C. wrote: : > On Wed, Jul 28, 2010 at 2:04 AM, Jayachandran C. : > wrote: : >> Here's my initial work to get 64bit user space. =A0With this set o= f : >> changes, I can boot to the single user shell with n64 /sbin/init a= nd : >> /bin/sh. =A0There are still issues to fix, and the dynamic loader = is : >> still not working, but I think this would be a good time to get so= me : >> initial feedback. : > : > The dynamic loader seems to work after some straight-forward change= s. : > The only change is that the got[1] entry needs to be 64-bit. =A0The= : > changes are attached. : > : > There is still an occasional kernel panic in n64, which I need to : > track down - but I think the changes other than pmap.c/pmap64.c are= : > ready for check in. =A0I would like some feedback on pmap64.c I can= : > clean it up for check in. : = : I'm uncomfortable with pmap.c and pmap64.c. I don't get the : impression that the ifdefs required to do both in the same file are : really a great burden, but obviously my efforts are incomplete : compared to yours. It seems like there are very few operations that : should care about how deep the page tables are and that macros and : ifdefed inline functions are the way to go. If you check it in as tw= o : files, I'll probably just go through and ifdef the deltas that can't : be eliminated. What do you think are the problem areas that justify : having two different files? Eventually, and by no means should this hold things up today, I'd like to be able to run 32-bit and 64-bit programs on the same system... Warner