|
@@ -40,14 +40,14 @@ gd_t *global_data;
|
|
|
: : "i"(offsetof(gd_t, jt)), "i"(XF_ ## x * sizeof(void *)) : "r11");
|
|
|
#elif defined(CONFIG_ARM)
|
|
|
/*
|
|
|
- * r8 holds the pointer to the global_data, ip is a call-clobbered
|
|
|
+ * r9 holds the pointer to the global_data, ip is a call-clobbered
|
|
|
* register
|
|
|
*/
|
|
|
#define EXPORT_FUNC(x) \
|
|
|
asm volatile ( \
|
|
|
" .globl " #x "\n" \
|
|
|
#x ":\n" \
|
|
|
-" ldr ip, [r8, %0]\n" \
|
|
|
+" ldr ip, [r9, %0]\n" \
|
|
|
" ldr pc, [ip, %1]\n" \
|
|
|
: : "i"(offsetof(gd_t, jt)), "i"(XF_ ## x * sizeof(void *)) : "ip");
|
|
|
#elif defined(CONFIG_MIPS)
|