summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRobin Getz <robin.getz@analog.com>2009-08-17 15:23:02 +0000
committerTom Rix <Tom.Rix@windriver.com>2009-10-03 09:04:06 -0500
commitced6466ed520749ea73651b45fabeb5a3efa9c8b (patch)
tree2763fa03f67e8bcdfc45e145213c572ce3b76ac1 /doc
parentf6e33d95dfe4b95a284d3e960eabc8b04f71b56a (diff)
downloadu-boot-imx-ced6466ed520749ea73651b45fabeb5a3efa9c8b.zip
u-boot-imx-ced6466ed520749ea73651b45fabeb5a3efa9c8b.tar.gz
u-boot-imx-ced6466ed520749ea73651b45fabeb5a3efa9c8b.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 'doc')
-rw-r--r--doc/README.standalone2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/README.standalone b/doc/README.standalone
index 81b949a..885c92f 100644
--- a/doc/README.standalone
+++ b/doc/README.standalone
@@ -21,7 +21,7 @@ Design Notes on Exporting U-Boot Functions to Standalone Applications:
2. The pointer to the jump table is passed to the application in a
machine-dependent way. PowerPC, ARM, MIPS and Blackfin architectures
use a dedicated register to hold the pointer to the 'global_data'
- structure: r2 on PowerPC, r8 on ARM, k0 on MIPS, and P5 on Blackfin.
+ structure: r2 on PowerPC, r8 on ARM, k0 on MIPS, and P3 on Blackfin.
The x86 architecture does not use such a register; instead, the
pointer to the 'global_data' structure is passed as 'argv[-1]'
pointer.