aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRobin Getz <robin.getz@analog.com>2009-08-17 15:23:02 +0000
committerMike Frysinger <vapier@gentoo.org>2009-09-02 05:14:02 -0400
commitc4db335c2e0805e1ce4c33d278b77492c0812353 (patch)
treef34ad8f1791e0a76255706929cf7b7bb534c2513 /examples
parent574b70df03fba0ea635e2fe71fbd7b97d19b706a (diff)
downloadu-boot-c4db335c2e0805e1ce4c33d278b77492c0812353.zip
u-boot-c4db335c2e0805e1ce4c33d278b77492c0812353.tar.gz
u-boot-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 'examples')
-rw-r--r--examples/standalone/stubs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/standalone/stubs.c b/examples/standalone/stubs.c
index a8cb954..339bbf9 100644
--- a/examples/standalone/stubs.c
+++ b/examples/standalone/stubs.c
@@ -127,14 +127,14 @@ gd_t *global_data;
: : "i"(offsetof(gd_t, jt)), "i"(XF_ ## x * sizeof(void *)) : "r5");
#elif defined(CONFIG_BLACKFIN)
/*
- * P5 holds the pointer to the global_data, P0 is a call-clobbered
+ * P3 holds the pointer to the global_data, P0 is a call-clobbered
* register
*/
#define EXPORT_FUNC(x) \
asm volatile ( \
" .globl _" #x "\n_" \
#x ":\n" \
-" P0 = [P5 + %0]\n" \
+" P0 = [P3 + %0]\n" \
" P0 = [P0 + %1]\n" \
" JUMP (P0)\n" \
: : "i"(offsetof(gd_t, jt)), "i"(XF_ ## x * sizeof(void *)) : "P0");