[PATCH] Fix bug in jumptable call stubs for SPARC.
Sergey Mironov
smironov at module.ru
Wed Sep 16 08:55:21 CEST 2009
=9ASeems, that i am the first who tested it.
Signed-off-by: Sergey Mironov <ierton at gmail.com>
---
=9Aexamples/standalone/stubs.c | =9A =9A4 ++--
=9A1 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;
=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 <daniel at gaisler.com>:
> 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.
>
> Thanks,
> Daniel Hellstrom
>
>
> Daniel Hellstrom wrote:
>
>> 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
>> feature :)
>>
>> Please CC me next time.
>>
>> Thanks,
>> Daniel
>>
>> =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 :)
>>>
>>>
>>>
>>>
>>
>> _______________________________________________
>> 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.
More information about the U-Boot
mailing list