Skip to contentSkip to conversation

Fix bug in jumptable call stubs for SPARC.

PATCH New Sergey Mironov 1 participant 1 message Sep 16, 2009

lore
Share & tools
lore
#0 lore raw

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

=9ASeems, that i am the first who tested it.

---
=9Aexamples/standalone/stubs.c | =9A =9A4 ++-- =9A1 files changed, 2 insertions(+), 2 deletions(-)

examples/standalone/stubs.c +0 -0
index a8cb954..08c4017 100644
@@ -181,9 +181,9 @@ gd_t *global_data;

=9A" =9A =9A =9Aor %%g1, %%g7, %%g1\n" =9A =9A =9A =9A =9A =9A =9A =9A =9A = =9A =9A =9A =9A\
=9A" =9A =9A =9Ald [%%g1], %%g1\n" =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A = =9A =9A =9A =9A =9A\
=9A" =9A =9A =9Ald [%%g1 + %1], %%g1\n" =9A =9A =9A =9A =9A =9A =9A =9A =9A=
=9A =9A =9A \
-" =9A =9A =9Acall %%g1\n" =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A = =9A =9A =9A =9A =9A =9A\
+" =9A =9A =9Ajmp %%g1\n" =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A = =9A =9A =9A =9A =9A =9A \
=9A" =9A =9A =9Anop\n" =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A = =9A =9A =9A =9A =9A =9A =9A =9A\
- =9A =9A =9A : : "i"(offsetof(gd_t, jt)), "i"(XF_ ## x) : "g1" );
+ =9A =9A =9A : : "i"(offsetof(gd_t, jt)), "i"(XF_ ## x * sizeof(void *)) := "g1" );

=9A#else
=9A#error stubs definition missing for this architecture --
1.6.0.3

2009/9/23 Daniel Hellstrom <[email protected]>:

Quoted 6 lines

Hi Sergey,

Can you resend your patch, this time signed off =9A(the -s options to git-commit) so that your name will propagate correctly through the git repos.

Quoted 10 lines

Thanks,
Daniel Hellstrom

Quoted 4 lines · Daniel Hellstrom

Hi Sergey,

Thank you for your work. I have updated the sparc repository with your patch. And, yes, you are probably the first one to use the standalone ap=

p

Quoted 21 lines
Quoted 21 lines

feature :)

Please CC me next time.

Thanks,
Daniel

Quoted 10 lines · =F3=C5=D2=C7=C5=CA =ED=C9=D2=CF=CE=CF=D7 wrote:

Hi! Thanks for the beautiful project! Ive tried to launch standalone app 'hello_world' on my SPARC leon3 board (ml-402) and found that application says 'boom' and halts. So here is the patch to solve the problem. Seems, that i am the first who ever launched Sparc'ish standalone code :)

Quoted 9 lines
Quoted 7 lines

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

--=20
=F3 =F5=D7=C1=D6=C5=CE=C9=C5=CD,
=F3=C5=D2=C7=C5=CA.