diff options
author | Robin Getz <robin.getz@analog.com> | 2009-08-17 15:23:02 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-09-02 05:14:02 -0400 |
commit | c4db335c2e0805e1ce4c33d278b77492c0812353 (patch) | |
tree | f34ad8f1791e0a76255706929cf7b7bb534c2513 /lib_blackfin/config.mk | |
parent | 574b70df03fba0ea635e2fe71fbd7b97d19b706a (diff) | |
download | u-boot-imx-c4db335c2e0805e1ce4c33d278b77492c0812353.zip u-boot-imx-c4db335c2e0805e1ce4c33d278b77492c0812353.tar.gz u-boot-imx-c4db335c2e0805e1ce4c33d278b77492c0812353.tar.bz2 |
Blackfin: change global data register from P5 to P3
Since the Blackfin ABI favors higher scratch registers by default, use the
last scratch register (P3) for global data rather than the first (P5).
This allows the compiler's register allocator to use higher number scratch
P registers, which in turn better matches the Blackfin instruction set,
which reduces the size of U-Boot by more than 1024 bytes...
Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'lib_blackfin/config.mk')
-rw-r--r-- | lib_blackfin/config.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib_blackfin/config.mk b/lib_blackfin/config.mk index a7e3658..34b53e6 100644 --- a/lib_blackfin/config.mk +++ b/lib_blackfin/config.mk @@ -28,7 +28,7 @@ CONFIG_BFIN_BOOT_MODE := $(strip $(subst ",,$(CONFIG_BFIN_BOOT_MODE))) CONFIG_ENV_OFFSET := $(strip $(subst ",,$(CONFIG_ENV_OFFSET))) CONFIG_ENV_SIZE := $(strip $(subst ",,$(CONFIG_ENV_SIZE))) -PLATFORM_RELFLAGS += -ffixed-P5 -fomit-frame-pointer -mno-fdpic +PLATFORM_RELFLAGS += -ffixed-P3 -fomit-frame-pointer -mno-fdpic PLATFORM_CPPFLAGS += -DCONFIG_BLACKFIN LDFLAGS += --gc-sections |