From owner-freebsd-mips@FreeBSD.ORG Tue Mar 2 04:43:21 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 F3D811065672 for ; Tue, 2 Mar 2010 04:43:20 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id C9E0C8FC12 for ; Tue, 2 Mar 2010 04:43:20 +0000 (UTC) Received: by pvg3 with SMTP id 3so1139922pvg.13 for ; Mon, 01 Mar 2010 20:43:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=4WetbxhuWG6ct6r/FtVg3V+cY+eVl5CTmNsM8PPtlLQ=; b=rXKOaiUFN0oRs0Gt1kbNZ3lTDSg/LkoqyQeydSadQGDWkXZi9RMwxyGSBCyR/nMz2L zf89Esj2KNx0hVVxGUBAttw4kPsu/mQRFBsr38TmJ2mHhvtlFVxJY+Fd6Cq3Uzck6OjL tqTF6TyTqTiX2nYNRm6++YMNZhF6x5xluomto= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Cxga0d5kou3eVMZiDjPjPW3WSW37hydiKQZM4A+lP3jgDqK1raNZIvK9+7dxcewHmB MTQTM3f1CD7fVqAFBMohodIPkVG1enAIaq8bANxuBs1KBmiBBALbp8rvcJKL8fc7t88S UY1CtMNCU9XkA9piZBk3ttfaaf3Ue5Oso386Y= MIME-Version: 1.0 Received: by 10.142.195.16 with SMTP id s16mr3124303wff.306.1267504991927; Mon, 01 Mar 2010 20:43:11 -0800 (PST) In-Reply-To: <98a59be81003010628g6099768erc397bc90841840f8@mail.gmail.com> References: <98a59be81003010628g6099768erc397bc90841840f8@mail.gmail.com> Date: Mon, 1 Mar 2010 20:43:11 -0800 Message-ID: From: Neel Natu To: "C. Jayachandran" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: n32 support patches 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: Tue, 02 Mar 2010 04:43:21 -0000 Hi JC, The changes to bsd.cpu.mk that append to LDFLAGS will most likely break building kernel modules. Can you build a kernel module in a tree with your patch? The problem is that LDFLAGS are directly passed as arguments to the linker in bsd.kmod.mk and the linker does not like the -Wl,-linker_option style of setting options. Do you really need to set LDFLAGS in bsd.cpu.mk? It would seem that simply setting LD would work. best Neel On Mon, Mar 1, 2010 at 6:28 AM, C. Jayachandran wrote: > I'm in the process of getting n32 ABI support for the RMI processors. > The plan is have n32 compiled kernel with 64-bit register_t and > physaddr_t and 32 bit long and pointer types. > > I've attached two patches, one for support for n32 in toolchain and > one for n32 support in kernel compilation. =A0With this I am able to > compile the kernel and user space with n32, and the boot-up reaches > until init. There is a lot more work on user-space and kernel (esp in > mips/mips/*.S) before it can complete boot-up. > > Please review and let me know if you have any comments or objections > on this approach. The patches are: > > http://sites.google.com/site/cjayachandran/files/n32-toolchain.patch > Toolchain support for N32 > - Adds the linker emulations needed for n32 > - Common preprocessor defines for ABI (_ABI_MIPS_SIM and _ABI???). > - Sets the long double type as 64 bit (this should be 128 bit in n32, > but there is some work needed to get the 128 bit soft-float working). > > http://sites.google.com/site/cjayachandran/files/n32-kernel.patch > N32 compilation - makefiles and conf > - Adds ldscript.mips.n32. > - Some cleanup in Makefile.mips, add ABI flags > - bsd.cpu.mk CFLAGS for n32 compilation and linking > > I have introduced a TARGET_N32 similart to TARGET_64 for n32 > compilation. =A0But I think on the long term, we need clean up the > different flags that affect architecture and ABI. Currently there is > an overlap between the TARGET_CPUTYPE flag, the ISA_ flags =A0and > the TARGET_ flags. > > Regards, > JC. > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" >