]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - examples/standalone/stubs.c
Blackfin: change global data register from P5 to P3
[karo-tx-uboot.git] / examples / standalone / stubs.c
index a8cb954282139a9b80ad6f1baef05a59084cc0d2..339bbf9b56dc9725f3b71f4f7e43c8e5d806d4e7 100644 (file)
@@ -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");