|
@@ -3499,7 +3499,7 @@ GCC's implementation.
|
|
|
|
|
|
For PowerPC, the following registers have specific use:
|
|
For PowerPC, the following registers have specific use:
|
|
R1: stack pointer
|
|
R1: stack pointer
|
|
- R2: TOC pointer
|
|
|
|
|
|
+ R2: reserved for system use
|
|
R3-R4: parameter passing and return values
|
|
R3-R4: parameter passing and return values
|
|
R5-R10: parameter passing
|
|
R5-R10: parameter passing
|
|
R13: small data area pointer
|
|
R13: small data area pointer
|
|
@@ -3508,7 +3508,7 @@ For PowerPC, the following registers have specific use:
|
|
|
|
|
|
(U-Boot also uses R14 as internal GOT pointer.)
|
|
(U-Boot also uses R14 as internal GOT pointer.)
|
|
|
|
|
|
- ==> U-Boot will use R29 to hold a pointer to the global data
|
|
|
|
|
|
+ ==> U-Boot will use R2 to hold a pointer to the global data
|
|
|
|
|
|
Note: on PPC, we could use a static initializer (since the
|
|
Note: on PPC, we could use a static initializer (since the
|
|
address of the global data structure is known at compile time),
|
|
address of the global data structure is known at compile time),
|