From owner-freebsd-arm@FreeBSD.ORG Tue May 19 22:01:02 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6C801065678 for ; Tue, 19 May 2009 22:01:02 +0000 (UTC) (envelope-from cwenqi@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26]) by mx1.freebsd.org (Postfix) with ESMTP id 78D778FC1F for ; Tue, 19 May 2009 22:01:02 +0000 (UTC) (envelope-from cwenqi@gmail.com) Received: by ey-out-2122.google.com with SMTP id 9so31406eyd.7 for ; Tue, 19 May 2009 15:01:01 -0700 (PDT) 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=yRp/wBuJArgR9MvmI6NVLAjExM7H7ZA3eMV3A9Z22XY=; b=hb1icYo74pfE+qHpmeMEHn0wTMnpw0r3+lh4dhLwUoXoId7rX2/ymv7CCA6kxTQr16 QAqZ0TGjQM/zd9upE2mSSxgOlPwNA+4L6jcGiRkwRYfR4zEeifd++r2rSDACDKdya26E d7YLPgywPZaCKPYlmbCoDp1iawTpmhnFX3mQ0= 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=p7JDGOe2ogaoSQgY3GnLEHEYVJLGMyu1bfyHdHGhQS6eJjOiJ5xPOAKRWVlSyFSmCB OqhiHcle6ttzCRJl7nTfPCpmFxtjD93twVDFgGmK4CaFA3VXlrlgSqCNNvwJd4QKCgAo zo3FEs4/15hvNYvW2NpTUuq/IHd4A+o27/99k= MIME-Version: 1.0 Received: by 10.216.54.83 with SMTP id h61mr132393wec.69.1242768803934; Tue, 19 May 2009 14:33:23 -0700 (PDT) In-Reply-To: <200905192100.n4JL0qNx079696@casselton.net> References: <4A12D46B.8040808@telenix.org> <200905192100.n4JL0qNx079696@casselton.net> Date: Tue, 19 May 2009 22:33:23 +0100 Message-ID: From: Wenqi Chen To: Mark Tinguely Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-arm@freebsd.org Subject: Re: crosscompiler and porting notes X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2009 22:01:03 -0000 codesourcery revison of GCC-4.3 does seem to support armv7-a compiler flag/NEON instruction set. 2009/5/19 Mark Tinguely : > > sorry for the blank reply. It should have said > > Looking at the current sources for the GNU assembler, it appears to me th= at > the "gas" sources do not have some new and important ARMv7 commands such = as > "dmb", "dsb", and "isb" (barriers). There ARMv6 equivalent command, but > are not recommended. > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0--- > I looked at the Cortex document, the first thing that changed in ARMv7 > is the information registers (for example information on the caches). > You will need to replace the CPU information and intialization code. > > It would be nice to get an ARMv7 ARM. Someone with authority, like the > FreeBSD Foundation may be needed. > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0--- > You will need to write a new cpufunc_asm_XXX.S file of routines. The > existing routines assume the pmap will flush the caches on context change= . > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0--- > I would suggest you start by using the existing memory model of flushing > caches on context changes until we learn more on the Cortex cache - are t= hey > *really* not effected by the cache coloring problem. > > If you can get the console working, and are willing to put some test > code into somewhere like pmap_bootstrap(), to test if the cache coloring > is really fixed, I would write it up. > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0--- > I have some rough code for the new ARMv6/ARMv7 TLS registers, the tlb ASI= D > and load and store exclusive. You have plenty to do to get the board up > to single user, without having to worry about this other stuff. > > --Mark. > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > --=20 WC