All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix bug in jumptable call stubs for SPARC. Seems, that i am the first who tested it.
@ 2009-09-16  6:55 Sergey Mironov
  0 siblings, 0 replies; only message in thread
From: Sergey Mironov @ 2009-09-16  6:55 UTC (permalink / raw)
  To: u-boot

---
 examples/standalone/stubs.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/standalone/stubs.c b/examples/standalone/stubs.c
index a8cb954..08c4017 100644
--- a/examples/standalone/stubs.c
+++ b/examples/standalone/stubs.c
@@ -181,9 +181,9 @@ gd_t *global_data;
 "	or %%g1, %%g7, %%g1\n"				\
 "	ld [%%g1], %%g1\n"				\
 "	ld [%%g1 + %1], %%g1\n"				\
-"	call %%g1\n"					\
+"	jmp %%g1\n"					\
 "	nop\n"						\
-	: : "i"(offsetof(gd_t, jt)), "i"(XF_ ## x) : "g1" );
+	: : "i"(offsetof(gd_t, jt)), "i"(XF_ ## x * sizeof(void *)) : "g1" );

 #else
 #error stubs definition missing for this architecture
-- 
1.6.0.3

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-16  6:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-16  6:55 [PATCH] Fix bug in jumptable call stubs for SPARC. Seems, that i am the first who tested it Sergey Mironov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.