From: Aneesh V <aneesh@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 0/4] Enable Thumb build for ARM platforms
Date: Wed, 15 Feb 2012 19:27:29 +0530 [thread overview]
Message-ID: <1329314253-4596-1-git-send-email-aneesh@ti.com> (raw)
In-Reply-To: <1328528248-20872-1-git-send-email-aneesh@ti.com>
Thumb is an alternate instruction set available in many
ARM processors. Below is a detailed description from ARM
specs:
"The Thumb instruction set is a re-encoded subset of the
ARM instruction set. Thumb instructions execute in their
own processor state, with the architecture defining the
mechanisms required to transition between ARM and Thumb
states. The key difference is that Thumb instructions are
half the size of ARM instructions(16 bits compared with 32
bits). Greater code density can usually be achieved by using
the Thumb instruction set in preference to the ARM instruction
set, at a cost of some reduction in performance"
"In ARMv6T2, Thumb-2 technology is introduced. This technology
makes it possible to extend the original Thumb instruction set
with many 32-bit instructions. The range of 32-bit Thumb instructions
included in ARMv6T2 permits Thumb code to achieve performance
similar to ARM code, with code density better than that of earlier
Thumb code. From ARMv6T2, the ARM and Thumb instruction sets provide
almost identical functionality"
This series adds Thumb support in U-Boot and enables it for
OMAP4. It also fixes issues faced while booting OMAP4 with
Thumb-2 images of U-Boot and SPL.
Thumb mode is becoming increasingly relevant for U-Boot with
the advent of SPL. It's very important to keep SPL size smaller
considering the internal RAM size constraints on many platforms.
On OMAP4 the size reduction enables us to use SPL on secure devices
that have smaller internal RAM available for non-secure world.
I would request all who are interested in this feature to test it
and give feedback. To make that easier I have pushed my patches
here (along with the timer patch from Nicolas that fixes boot on
OMAP4):
git at github.com:aneeshv/u-boot.git
branch: thumb
To enable support for new platforms you just need to add
CONFIG_SYS_THUMB_BUILD in your config file.
Tool-chains tried:
1. Sourcery G++ Lite 2010q1-202
arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2010q1-202) 4.4.1
GNU ld (Sourcery G++ Lite 2010q1-202) - binutils 2.19.51.20090709
2. Linaro 4.6-2012.01
arm-linux-gnueabi-gcc (crosstool-NG linaro-1.13.1-2012.01-20120125 -
Linaro GCC 2012.01) 4.6.3 20120105 (prerelease)
GNU ld (crosstool-NG linaro-1.13.1-2012.01-20120125 - Linaro GCC 2012.01) 2.22
Code-size reduction:
Image ARM build Thumb build % Reduction
u-boot.bin 190408 144676 24.01%
u-boot-spl.bin 33200 25096 24.40%
Performance(timestamp just before the main loop):
ARM build Thumb build % Reduction
898510us 878247us -2.25%
Performance actually improved marginally for the Thumb
build, maybe because of the reduced image sizes.
Aneesh V (4):
ARM: enable Thumb build
arm: add %function attribute to assembly functions
armv7: Use -march=armv7-a and thereby enable Thumb-2
OMAP4: enable Thumb build
README | 9 +++++
arch/arm/config.mk | 20 +++++++---
arch/arm/cpu/arm1136/omap24xx/reset.S | 3 +-
arch/arm/cpu/arm1136/start.S | 7 +++-
arch/arm/cpu/arm1176/s3c64xx/cpu_init.S | 3 +-
arch/arm/cpu/arm1176/s3c64xx/reset.S | 3 +-
arch/arm/cpu/arm1176/start.S | 9 +++--
arch/arm/cpu/arm1176/tnetv107x/lowlevel_init.S | 3 +-
arch/arm/cpu/arm720t/lpc2292/iap_entry.S | 3 +-
arch/arm/cpu/arm720t/start.S | 12 ++++--
arch/arm/cpu/arm920t/a320/reset.S | 1 +
arch/arm/cpu/arm920t/at91/lowlevel_init.S | 3 +-
arch/arm/cpu/arm920t/ep93xx/lowlevel_init.S | 3 +-
arch/arm/cpu/arm920t/ks8695/lowlevel_init.S | 3 +-
arch/arm/cpu/arm920t/start.S | 6 ++-
arch/arm/cpu/arm925t/start.S | 9 +++--
arch/arm/cpu/arm926ejs/at91/lowlevel_init.S | 4 +-
arch/arm/cpu/arm926ejs/davinci/lowlevel_init.S | 3 +-
arch/arm/cpu/arm926ejs/davinci/reset.S | 3 +-
arch/arm/cpu/arm926ejs/mx28/start.S | 3 +-
arch/arm/cpu/arm926ejs/nomadik/reset.S | 3 +-
arch/arm/cpu/arm926ejs/omap/reset.S | 3 +-
arch/arm/cpu/arm926ejs/orion5x/lowlevel_init.S | 3 +-
arch/arm/cpu/arm926ejs/start.S | 9 +++--
arch/arm/cpu/arm926ejs/versatile/reset.S | 3 +-
arch/arm/cpu/arm946es/start.S | 9 +++--
arch/arm/cpu/arm_intcm/start.S | 15 ++------
arch/arm/cpu/armv7/config.mk | 5 ++-
arch/arm/cpu/armv7/mx5/lowlevel_init.S | 3 +-
arch/arm/cpu/armv7/mx6/lowlevel_init.S | 3 +-
arch/arm/cpu/armv7/omap-common/lowlevel_init.S | 9 +++--
arch/arm/cpu/armv7/omap-common/reset.S | 1 +
arch/arm/cpu/armv7/omap3/lowlevel_init.S | 45 ++++++++++++++++--------
arch/arm/cpu/armv7/s5pc1xx/cache.S | 2 +
arch/arm/cpu/armv7/s5pc1xx/reset.S | 3 +-
arch/arm/cpu/armv7/start.S | 9 +++--
arch/arm/cpu/armv7/tegra2/lowlevel_init.S | 1 +
arch/arm/cpu/armv7/u8500/lowlevel.S | 6 ++-
arch/arm/cpu/ixp/start.S | 9 +++--
arch/arm/cpu/lh7a40x/start.S | 9 +++--
arch/arm/cpu/pxa/start.S | 6 ++-
arch/arm/cpu/s3c44b0/start.S | 6 ++-
arch/arm/cpu/sa1100/start.S | 9 +++--
arch/arm/lib/_ashldi3.S | 6 ++-
arch/arm/lib/_ashrdi3.S | 6 ++-
arch/arm/lib/_divsi3.S | 6 ++-
arch/arm/lib/_lshrdi3.S | 6 ++-
arch/arm/lib/_modsi3.S | 3 +-
arch/arm/lib/_udivsi3.S | 6 ++-
arch/arm/lib/memcpy.S | 3 +-
arch/arm/lib/memset.S | 3 +-
include/configs/omap4_common.h | 2 +
52 files changed, 214 insertions(+), 108 deletions(-)
next prev parent reply other threads:[~2012-02-15 13:57 UTC|newest]
Thread overview: 83+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-06 11:37 [U-Boot] [RFC PATCH 0/4] Enable Thumb build for ARM platforms Aneesh V
2012-02-06 11:37 ` [U-Boot] [RFC PATCH 1/4] ARM: enable Thumb build Aneesh V
2012-02-06 18:45 ` Tom Rini
2012-02-07 7:43 ` Aneesh V
2012-02-06 11:37 ` [U-Boot] [RFC PATCH 2/4] OMAP3+: fix issues with " Aneesh V
2012-02-06 21:06 ` Albert ARIBAUD
2012-02-07 7:49 ` Aneesh V
2012-02-09 8:58 ` Aneesh V
2012-02-06 11:37 ` [U-Boot] [RFC PATCH 3/4] OMAP3+: Use -march=armv7-a and thereby enable Thumb-2 Aneesh V
2012-02-06 11:37 ` [U-Boot] [RFC PATCH 4/4] OMAP4: enable Thumb build Aneesh V
2012-02-06 12:26 ` [U-Boot] [RFC PATCH 0/4] Enable Thumb build for ARM platforms Aneesh V
2012-02-06 13:22 ` Aneesh V
2012-02-15 13:57 ` Aneesh V [this message]
2012-02-15 13:57 ` [U-Boot] [PATCH 1/4] ARM: enable Thumb build Aneesh V
2012-02-15 13:57 ` [U-Boot] [PATCH 2/4] arm: add %function attribute to assembly functions Aneesh V
2012-02-17 11:09 ` Aneesh V
2012-02-18 10:13 ` Albert ARIBAUD
2012-02-18 13:24 ` Aneesh V
2012-02-18 15:04 ` Albert ARIBAUD
2012-02-18 16:34 ` Aneesh V
2012-02-18 16:48 ` Albert ARIBAUD
2012-02-20 16:08 ` Aneesh V
2012-02-23 11:06 ` Aneesh V
2012-02-17 17:13 ` Mike Frysinger
2012-02-18 11:12 ` Aneesh V
2012-02-18 11:34 ` Albert ARIBAUD
2012-02-18 22:03 ` Simon Glass
2012-02-19 7:15 ` Mike Frysinger
2012-02-20 20:07 ` Tom Rini
2012-02-20 21:53 ` Simon Glass
2012-02-21 4:19 ` Mike Frysinger
2012-02-21 4:44 ` Simon Glass
2012-02-21 14:33 ` Tom Rini
2012-02-21 15:42 ` Mike Frysinger
2012-02-21 18:03 ` Aneesh V
2012-02-21 19:28 ` Mike Frysinger
2012-02-21 20:01 ` Aneesh V
2012-02-21 4:18 ` Mike Frysinger
2012-02-15 13:57 ` [U-Boot] [PATCH 3/4] armv7: Use -march=armv7-a and thereby enable Thumb-2 Aneesh V
2012-02-15 13:57 ` [U-Boot] [PATCH 4/4] OMAP4: enable Thumb build Aneesh V
2012-02-23 13:39 ` [U-Boot] [PATCH v2 1/5] arm: adapt asm/linkage.h from Linux Aneesh V
2012-02-23 14:01 ` Aneesh V
2012-02-23 13:39 ` [U-Boot] [PATCH v2 2/5] armv7: add appropriate headers for assembly functions Aneesh V
2012-02-23 13:39 ` [U-Boot] [PATCH v2 3/5] ARM: enable Thumb build Aneesh V
2012-02-23 14:57 ` Mike Frysinger
2012-02-23 17:28 ` Aneesh V
2012-02-23 17:34 ` Tom Rini
2012-02-23 17:49 ` Aneesh V
2012-02-23 17:51 ` Tom Rini
2012-02-23 18:09 ` Aneesh V
2012-02-23 18:13 ` Aneesh V
2012-02-23 18:05 ` Mike Frysinger
2012-02-23 18:04 ` Mike Frysinger
2012-02-23 18:12 ` Aneesh V
2012-02-23 13:39 ` [U-Boot] [PATCH v2 4/5] armv7: Use -march=armv7-a and thereby enable Thumb-2 Aneesh V
2012-02-23 13:39 ` [U-Boot] [PATCH v2 5/5] OMAP4: enable Thumb build Aneesh V
2012-02-23 14:06 ` [U-Boot] [PATCH v3 1/6] arm: adapt asm/linkage.h from Linux Aneesh V
2012-02-23 14:59 ` Mike Frysinger
2012-02-23 15:24 ` Tom Rini
2012-02-23 16:57 ` Mike Frysinger
2012-02-23 17:40 ` Aneesh V
2012-02-23 23:52 ` Mike Frysinger
2012-02-24 10:30 ` Aneesh V
2012-02-23 14:06 ` [U-Boot] [PATCH v3 2/6] armv7: add appropriate headers for assembly functions Aneesh V
2012-02-23 14:59 ` Mike Frysinger
2012-02-23 14:06 ` [U-Boot] [PATCH v3 3/6] ARM: enable Thumb build Aneesh V
2012-02-23 14:06 ` [U-Boot] [PATCH v3 4/6] armv7: Use -march=armv7-a and thereby enable Thumb-2 Aneesh V
2012-02-23 15:05 ` Mike Frysinger
2012-02-23 17:50 ` Aneesh V
2012-02-23 14:06 ` [U-Boot] [PATCH v3 5/6] omap4+: Avoid using __attribute__ ((__packed__)) Aneesh V
2012-02-23 14:21 ` Tom Rini
2012-02-23 14:56 ` Aneesh V
2012-02-23 15:03 ` Mike Frysinger
2012-02-23 15:03 ` Mike Frysinger
2012-02-23 15:42 ` Aneesh V
2012-02-23 14:06 ` [U-Boot] [PATCH v3 6/6] OMAP4: enable Thumb build Aneesh V
2012-03-08 17:10 ` [U-Boot] [PATCH 1/6] arm: adapt asm/linkage.h from Linux Aneesh V
2012-03-08 17:14 ` Aneesh V
2012-03-08 17:10 ` [U-Boot] [PATCH 2/6] armv7: add appropriate headers for assembly functions Aneesh V
2012-03-08 17:10 ` [U-Boot] [PATCH 3/6] ARM: enable Thumb build Aneesh V
2012-03-08 17:10 ` [U-Boot] [PATCH 4/6] armv7: Use -march=armv7-a and thereby enable Thumb-2 Aneesh V
2012-03-08 17:10 ` [U-Boot] [PATCH 5/6] omap4+: Avoid using __attribute__ ((__packed__)) Aneesh V
2012-03-08 17:10 ` [U-Boot] [PATCH 6/6] OMAP4: enable Thumb build Aneesh V
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1329314253-4596-1-git-send-email-aneesh@ti.com \
--to=aneesh@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox