Skip to contentSkip to conversation

Fix bug in jumptable call stubs for SPARC.

PATCH New Daniel Hellstrom 1 participant 1 message Sep 23, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix bug in jumptable call stubs for SPARC.

From: Sergey Mironov <[email protected]>

Hello Wolfgang,

Sergey has resent the patch with a sign-off and I have updated the u-boot-sparc.git repository with the new patch, for SPARC standalone application support.

Thank you,
Daniel Hellstrom

---
 examples/standalone/stubs.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
examples/standalone/stubs.c +2 -2
index 339bbf9..ce3371d 100644
@@ -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
Signature · 1 line
1.5.4