From owner-freebsd-mips@FreeBSD.ORG Wed Jul 28 23:42:17 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 0DA611065672 for ; Wed, 28 Jul 2010 23:42:17 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id D1F6B8FC21 for ; Wed, 28 Jul 2010 23:42:16 +0000 (UTC) Received: by iwn35 with SMTP id 35so6307759iwn.13 for ; Wed, 28 Jul 2010 16:42:15 -0700 (PDT) Received: by 10.42.9.73 with SMTP id l9mr3588404icl.74.1280360535216; Wed, 28 Jul 2010 16:42:15 -0700 (PDT) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.42.4.66 with HTTP; Wed, 28 Jul 2010 16:41:55 -0700 (PDT) In-Reply-To: References: From: Juli Mallett Date: Wed, 28 Jul 2010 16:41:55 -0700 X-Google-Sender-Auth: qw4nEV-4OZf2M0XtkIqdjPxDG7Q Message-ID: To: "Jayachandran C." 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:42:17 -0000 Hi JC, On Wed, Jul 28, 2010 at 16:32, Jayachandran C. w= rote: > 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 of >> changes, I can boot to the single user shell with n64 /sbin/init and >> /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 some >> initial feedback. > > The dynamic loader seems to work after some straight-forward changes. > 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 two 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? Thanks, Juli.