From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VgkjP-0002GO-CA for mharc-grub-devel@gnu.org; Wed, 13 Nov 2013 19:24:23 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VgkjF-0002A9-LK for grub-devel@gnu.org; Wed, 13 Nov 2013 19:24:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vgkj7-0003ex-8k for grub-devel@gnu.org; Wed, 13 Nov 2013 19:24:13 -0500 Received: from mail-ea0-x22d.google.com ([2a00:1450:4013:c01::22d]:58891) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgkj7-0003eh-2W for grub-devel@gnu.org; Wed, 13 Nov 2013 19:24:05 -0500 Received: by mail-ea0-f173.google.com with SMTP id g10so620939eak.18 for ; Wed, 13 Nov 2013 16:24:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=EwbLbRtvo6Z/puWWkbinB/DnJ8q8UY1cuc422qWMs4Y=; b=jH3FIWsOCPDMf9vOAGNdbzpXyL6XZtX0fZaTG2vW9YrMTYbUqF00QyyMVq3TUdqCUS ssJFi2VYsCOsi6Q73d/BWld9lVNU5fBXfwpp1q3qkY7sxLXywjnzG6Rt9jvlfgTFhT5V K4cjDlWREqrRV4CRpRYNHRFMSXlEF6TT40PINuQAlg9yIUb4QnnAQmV/Ig8tOqJlvLv7 hIp4DOQvHOk70toWRIVDGiafWqAq+VsAvt/PpqZ2M9Sqp6Zpe4OTWmo3nWxMgZyR2JdL Xp5qYIjwWXJBtSuaDHoHbYbQA5ZRergmImzTvveznslCH9hlqAV12+Oxto5ASiXGGBse /QKA== X-Received: by 10.14.198.66 with SMTP id u42mr4734512een.80.1384388644233; Wed, 13 Nov 2013 16:24:04 -0800 (PST) Received: from [192.168.1.16] (31-249.1-85.cust.bluewin.ch. [85.1.249.31]) by mx.google.com with ESMTPSA id u46sm94107647eep.17.2013.11.13.16.24.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Nov 2013 16:24:03 -0800 (PST) Message-ID: <52841822.1080500@gmail.com> Date: Thu, 14 Nov 2013 01:24:02 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: arm-uboot: misc.S:56: Error: r13 not allowed here -- `sub sp, fp, #4' References: <20131113144919.GB30137@riva.ucam.org> <528397A9.5020406@gmail.com> <20131113153654.GV1557@rocoto.smurfnet.nu> <52839E7C.2060408@gmail.com> <20131113160514.GX1557@rocoto.smurfnet.nu> In-Reply-To: <20131113160514.GX1557@rocoto.smurfnet.nu> X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="----enig2TCUSUWROISLPFUFSCMIF" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::22d 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: Thu, 14 Nov 2013 00:24:22 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2TCUSUWROISLPFUFSCMIF Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 13.11.2013 17:05, Leif Lindholm wrote: > On Wed, Nov 13, 2013 at 04:45:00PM +0100, Vladimir '=CF=86-coder/phcode= r' Serbinenko wrote: >>>>> misc.S: Assembler messages: >>>>> misc.S:56: Error: r13 not allowed here -- `sub sp,fp,#4' >>>>> make[3]: *** [kern/arm/kernel_exec-misc.o] Error 1 >>>>> >>>>> I don't think SP can be used that way in Thumb mode? >>>>> >>>> I think that our asm routines should be in full ARM. Attached patch >>>> follows this strategy. One remaining problem is to make sure that th= umb >>>> flags in TARGET_CFLAGS and TARGET_CCASFLAGS match. >>> >>> There should be no need for this - the only thing is to ensure the >>> -mthumb-interwork is set in CCASFLAGS_PLATFORM as well as >>> CFLAGS_PLATFORM, and even that is just to prevent linker warnings.. >>> >>> There is no special ARM_PROLOGUE needed, and (on armv5te onwards) >>> pop {..., pc} is an interworking branch. >>> >>> If we want to force a file to build as ARM (which I'm not sure is >>> necessary now that we have split up armv6 separate from later >>> architectures), all that is required is a .arm directive up top. >>> >> Hm. I'm confused. According to >> http://stuff.mit.edu/afs/sipb/project/egcs/src/egcs/gcc/config/arm/REA= DME-interworking: >> "Note that specifying -mthumb-interwork does result in slightly larger= , >> slower code being produced. This is why interworking support must be >> specifically enabled by a switch." >=20 > That is fairly outdated documentation (1998). > Yes, it was true before armv5te. >=20 Hm, the qemu board easiest to test uboot with is versatile pb with arm926 with is armv5t. So no need to worry about this. So we require at least armv5 and arm support. Any boards outside of those resuirement which it makes any sense to support? ------enig2TCUSUWROISLPFUFSCMIF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREKAAYFAlKEGCIACgkQmBXlbbo5nOtR+gD/Toqtlxlg/GckNFEGUg8ySWmC eIjWoMwLPZyQ3aX3HUkA/3AuyJzwsYTWf93cGOKXd2KQHldRwHPGnn6l8Vp9lk5b =DXk/ -----END PGP SIGNATURE----- ------enig2TCUSUWROISLPFUFSCMIF--