From owner-freebsd-arm@FreeBSD.ORG Tue May 19 21:57:05 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 B3316106564A for ; Tue, 19 May 2009 21:57:05 +0000 (UTC) (envelope-from cwenqi@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id 3F7728FC12 for ; Tue, 19 May 2009 21:57:04 +0000 (UTC) (envelope-from cwenqi@gmail.com) Received: by ey-out-2122.google.com with SMTP id 9so30948eyd.7 for ; Tue, 19 May 2009 14:57:04 -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=nj/9LvBuxBqLpsxcHV3WlmpQJPwKPC3bejarZ5iFOUw=; b=FQ4EOTR0+4Ak+WFECr2CxnlUgrJ+MIFWd3ARURPjpBjQBaXIk1l7b3kZcV45sETm1x AEBgfUrYZDqoZfVa8hO2/N6kEcHi0vkjkte+9XEbpYKe7XvD2QlZUt+exazbzU2e86Si 4acOoOCecFHcscrZTW7sqcCGOrGVEC9eF/4rY= 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=N4xJTH8gfakxPnfhSLX0wZT2NnhefaRIjLPGKSqr2H1X+q1StbBIl5CrpeoU0ywRpQ HV35XW5ZmOlFFMx5R3ddtz3G16jHQb+gwq7zuVXuCfEtZcsS3xQTNgBXGv38g2Scyyuq yMC/AxvS7UN6f/3TZN/Dp4AzTo2cxS46J4s14= MIME-Version: 1.0 Received: by 10.216.71.196 with SMTP id r46mr129176wed.54.1242768852931; Tue, 19 May 2009 14:34:12 -0700 (PDT) In-Reply-To: References: <4A12D46B.8040808@telenix.org> <200905192100.n4JL0qNx079696@casselton.net> Date: Tue, 19 May 2009 22:34:12 +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 21:57:05 -0000 forgot to mention the compiler revision: codesourcery arm2008q3 2009/5/19 Wenqi Chen : > 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 t= hat >> 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 chang= e. >> =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 = they >> *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 AS= ID >> 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" >> > > > > -- > WC > --=20 WC