From owner-freebsd-arm@FreeBSD.ORG Sat Mar 2 23:17:23 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9D903DA9 for ; Sat, 2 Mar 2013 23:17:23 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ia0-x230.google.com (mail-ia0-x230.google.com [IPv6:2607:f8b0:4001:c02::230]) by mx1.freebsd.org (Postfix) with ESMTP id 508578DD for ; Sat, 2 Mar 2013 23:17:23 +0000 (UTC) Received: by mail-ia0-f176.google.com with SMTP id i18so3672724iac.7 for ; Sat, 02 Mar 2013 15:17:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer:x-gm-message-state; bh=gIpVL7zcvtbIPI0p7t0Q+KOzGD2/LyUtu6Jnr4uAMj8=; b=asIVJKqetPB2QWrl/RGoWZJAAiXFo8ijm2zGFQHX1abpddM15whgJk6rhZSN2LFesn HQTpg0WNcK55ZvqYPycB9ay3QYIoNncZvkVyVK4vEiGwf8LogyRYu1zUOIAYbWBgXA8S y+7+2sQavrLWckQ3LgaI56R3XQJOcs3xZ9LyeItBeZOrhlp+oLjY4Q3gq+0seeSDB+6J VwU0CwYzWgjpdvL6dI4ZZwPRxlTE2MhHYEeNny+2poVq2uWK63FG7Z6ozH18JYki29vo bz0NL0PsmDemQ/Nc2x7oTbJ4wbgPXFvMhLhHPmNJoYt2Xri5ICN/18c032r87C5YBXLs YZbw== X-Received: by 10.43.9.137 with SMTP id ow9mr17462679icb.32.1362266242800; Sat, 02 Mar 2013 15:17:22 -0800 (PST) Received: from 53.imp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPS id wo8sm4485378igb.6.2013.03.02.15.17.21 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 02 Mar 2013 15:17:21 -0800 (PST) Sender: Warner Losh Subject: Re: ARM EABI test image Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Sat, 2 Mar 2013 16:17:20 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20130302172556.5b59e122@bender> <1362246830.1195.181.camel@revolution.hippie.lan> <1362247523.1195.183.camel@revolution.hippie.lan> To: Tim Kientzle X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQmiEnbWGrqUplK73wyYRsmHTw6FXJ/y29YcDYv1rIwaWk3UT2UZydfLZWFDxNEyIkrPWloq Cc: freebsd-arm@freebsd.org, Ian Lepore , Ronald Klop X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Mar 2013 23:17:23 -0000 On Mar 2, 2013, at 11:19 AM, Tim Kientzle wrote: >=20 > On Mar 2, 2013, at 10:05 AM, Ian Lepore wrote: >=20 >> On Sat, 2013-03-02 at 19:00 +0100, Ronald Klop wrote: >>> On Sat, 02 Mar 2013 18:53:50 +0100, Ian Lepore = wrote: >>>=20 >>>> On Sat, 2013-03-02 at 18:21 +0100, Ronald Klop wrote: >>>>> On Sat, 02 Mar 2013 05:25:56 +0100, Andrew Turner = >>>>> wrote: >>>>>=20 >>>>>> Hello, >>>>>>=20 >>>>>> I have built an updated ARM EABI test image for Raspberry Pi [1]. >>>>>>=20 >>>>>> The only known issue is c++ exception handling is broken when >>>>>> using in a dynamically linked executable. Static executables = should >>>>>> work with c++ exceptions. >>>>>>=20 >>>>>> To test it you will have to extract it using unxz and dd it to an = sd >>>>>> card, for example, with a USB to SD adapter on /dev/da0: >>>>>> $ unxz bsd-pi-eabi-r247609.img.xz >>>>>> $ dd if=3Dbsd-pi-eabi-r247609.img of=3D/dev/da0 >>>>>>=20 >>>>>> If you don't have a Raspberry Pi but would like to try it on your = =20 >>>>> board >>>>>> you can add -DWITH_ARM_EABI to the make commands you use to build = and >>>>>> install world and the kernel. >>>>>=20 >>>>> Is this also interesing on the older SHEEVAPLUG? >>>>> If yes, I can test it somewhere next week. >>>>>=20 >>>>> Ronald. >>>>=20 >>>> As I understand it, the plan is that eventually everything is EABI, >>>> including the older armv4/5 stuff, so that needs testing too. >>>>=20 >>>> You know what I haven't stumbled across yet is a simple explanation = of >>>> why EABI is better then OABI. I tried to search for some info the = other >>>> day, but there are so many noise hits on the search I didn't find a >>>> simple synopsis of differences or advantages. >=20 > I wondered about that too, did some searching, and likewise > came up with nothing informative. The only "big wins" I've > seen quoted in the Linux community was an improvement > in FP performance. >=20 >>> Googling on 'eabi vs oabi' gives me this =20 >>> http://wiki.embeddedarm.com/wiki/EABI_vs_OABI. >>=20 >> I saw that, but that's a linux-specific answer to a linux-specific >> problem that freebsd never had: we use OABI without assuming hardware = fp >> and emulating it in the kernel via traps. I hope there's more = advantage >> to EABI than just that, since that part of it gets us nothing. >=20 > I think the only real advantage for us is that EABI is the > ARM-specified calling convention that will be supported > by all new toolchains going forward. >=20 > It's not so much that EABI brings us big wins but that > OABI was already starting to become a liability. Part of the ABI is the alignment rules for structures is saner, which is = also a big win. Warner=