From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aneesh V Date: Wed, 22 Feb 2012 01:31:45 +0530 Subject: [U-Boot] [PATCH 2/4] arm: add %function attribute to assembly functions In-Reply-To: <201202211428.52637.vapier@gentoo.org> References: <1328528248-20872-1-git-send-email-aneesh@ti.com> <201202211042.08315.vapier@gentoo.org> <4F43DC8B.1000409@ti.com> <201202211428.52637.vapier@gentoo.org> Message-ID: <4F43F829.1040707@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday 22 February 2012 12:58 AM, Mike Frysinger wrote: > On Tuesday 21 February 2012 13:03:55 Aneesh V wrote: >> I was planning to do that in the next revision of this series. BTW, I >> guess the following in the arm linkage.h of kernel is useful too. Any >> thoughts? >> >> #define __ALIGN .align 0 >> #define __ALIGN_STR ".align 0" > > arm allows unaligned instruction execution ? i would have thought it'd > require higher alignment than that. i don't think that'd be a good default > for everyone ... Unaligned instruction execution - No. ARM instruction should be 4 byte aligned and Thumb instruction should be 2 byte aligned. Unaligned data access - to a certain extent yes and is programmable. IIRC, access to 32 bit integer is possible at 2 byte boundary but not at an odd address. Yes, I was also a little puzzled by that one.