X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=examples%2Fstandalone%2Fstubs.c;h=a6a9fcf189a4dbf1ad5e0c3044a5a3f97cc9ef0c;hb=235c5b8315c6a9eb566fd3d99a098cc6db869fc5;hp=bc9ff89527bc1aa30de222c7aafdad4d74fd5b3c;hpb=936478e797a87bcd4e002bf70430b6f58584b155;p=oweals%2Fu-boot.git diff --git a/examples/standalone/stubs.c b/examples/standalone/stubs.c index bc9ff89527..a6a9fcf189 100644 --- a/examples/standalone/stubs.c +++ b/examples/standalone/stubs.c @@ -185,20 +185,6 @@ gd_t *global_data; " lwi $r16, [$r16 + (%1)]\n" \ " jr $r16\n" \ : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "$r16"); -#elif defined(CONFIG_OPENRISC) -/* - * r10 holds the pointer to the global_data, r13 is a call-clobbered - * register - */ -#define EXPORT_FUNC(f, a, x, ...) \ - asm volatile ( \ -" .globl " #x "\n" \ -#x ":\n" \ -" l.lwz r13, %0(r10)\n" \ -" l.lwz r13, %1(r13)\n" \ -" l.jr r13\n" \ -" l.nop\n" \ - : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "r13"); #elif defined(CONFIG_ARC) /* * r25 holds the pointer to the global_data. r10 is call clobbered.