From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1UYga4-0004YK-TM for mharc-grub-devel@gnu.org; Sat, 04 May 2013 13:49:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYga0-0004YD-Ns for grub-devel@gnu.org; Sat, 04 May 2013 13:49:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UYgZy-0003CG-Aj for grub-devel@gnu.org; Sat, 04 May 2013 13:49:04 -0400 Received: from mail-ee0-f48.google.com ([74.125.83.48]:62264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYgZy-0003BE-45 for grub-devel@gnu.org; Sat, 04 May 2013 13:49:02 -0400 Received: by mail-ee0-f48.google.com with SMTP id d4so1206267eek.35 for ; Sat, 04 May 2013 10:49:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=76S2P+TR9xVLipfGj1ht3UQ1KkZKdkR2SfZNgpa+r+k=; b=mVKlNY44+1H22HXt9oyQg7t5b55cv8s6WLcLYAl4xh66gzhTMYmEwtonMPgNxQIvtD Vkudlp/MxvZTUdxkEXsiv7ocro8SvaVp4X09APf8VL3F4G/uYZb/i8uxDKMfsMj8uo56 I0FcC+EHxxldkSYHSo0SUT9VZdUzKzgV9AmV0aHRERs49d03dikUdkyTzDcDDoYajHIA HiiWVd0UP76T2HxX5lDuOWwziQj/yvWve69lcDxziazPVA9OFU3dHCCQ6qqS9l1LAQ4y ns3WmH4HN/P8T9/McS21rEoUoWJlyA/fZt73cRu5ZfjJEfOpL8mWjMNegAwm55juJh8W 4XLA== X-Received: by 10.15.95.74 with SMTP id bc50mr43465661eeb.36.1367689740434; Sat, 04 May 2013 10:49:00 -0700 (PDT) Received: from [192.168.56.2] (mi-18-14-101.service.infuturo.it. [151.18.14.101]) by mx.google.com with ESMTPSA id k43sm22940484een.2.2013.05.04.10.48.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 04 May 2013 10:48:59 -0700 (PDT) Message-ID: <51854A4A.2030401@gmail.com> Date: Sat, 04 May 2013 19:50:02 +0200 From: Francesco Lavra User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: ARM branch References: <51684561.1040002@gmail.com> <20130501183258.GB28516@rocoto.smurfnet.nu> In-Reply-To: <20130501183258.GB28516@rocoto.smurfnet.nu> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.83.48 Cc: phcoder@gmail.com, Leif Lindholm X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 May 2013 17:49:07 -0000 Hi, On 05/01/2013 08:32 PM, Leif Lindholm wrote: > On Fri, Apr 12, 2013 at 07:33:21PM +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote: >> Hello, all. I've uploaded Leif's and my ARM code to >> http://bzr.savannah.gnu.org/lh/grub/branches/arm/changes. Francesco's >> code will be added as well once his papers are done. The only dirty part >> for Raspberry pi that I didn't upload is: > > I have attached a patch (against this branch) that contains build > system fixes and changes to the assembly files in order to permit the > same target-platform combination to build correctly on both ARMv6 and > ARMv7, with no special options required. [...] > === modified file 'grub-core/kern/arm/cache.S' > --- grub-core/kern/arm/cache.S 2013-04-07 00:41:07 +0000 > +++ grub-core/kern/arm/cache.S 2013-04-28 12:48:56 +0000 [...] > @@ -149,21 +137,26 @@ > clean_invalidate_dcache: > push {r4-r12, lr} > mrc p15, 1, r0, c0, c0, 1 @ Read CLIDR > - ubfx r1, r0, #24, #3 @ Extract LoC > - > + lsr r1, r0, #24 @ Extract LoC > + and r1, r1, #0x7 > + > mov r2, #0 @ First level, L1 > 2: and r8, r0, #7 @ cache type at current level > cmp r8, #2 > blt 5f @ instruction only, or none, skip level > > - @ set current cache level/type (for CSSIDR read) > + @ set current cache level/type (for CCSIDR read) > lsl r8, r2, #1 > mcr p15, 2, r8, c0, c0, 0 @ Write CSSELR (level, type: data/uni) > > @ read current cache information > - mrc p15, 1, r8, c0, c0, 0 @ Read CSSIDR > - ubfx r3, r8, #13, #14 @ Number of sets -1 > - ubfx r4, r8, #3, #9 @ Number of ways -1 > + mrc p15, 1, r8, c0, c0, 0 @ Read CCSIDR Unfortunately, in ARMv6 there are no such things as CLIDR, CSSELR and CCSIDR. -- Francesco