summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRobin Getz <[email protected]>2009-08-17 15:23:02 +0000
committerTom Rix <[email protected]>2009-10-03 09:04:06 -0500
commitced6466ed520749ea73651b45fabeb5a3efa9c8b (patch)
tree2763fa03f67e8bcdfc45e145213c572ce3b76ac1 /examples
parentf6e33d95dfe4b95a284d3e960eabc8b04f71b56a (diff)
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 <[email protected]> Signed-off-by: Mike Frysinger <[email protected]>
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 a8cb9542821..339bbf9b56d 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");