
Hi Daniel. Here is result of command git format-patch -s 22c3885a59674d078dbd18e1e32702c4b27ec582^
-- Thanks, Sergey.
From 22c3885a59674d078dbd18e1e32702c4b27ec582 Mon Sep 17 00:00:00 2001
From: Sergey Mironov smironov@module.ru Date: Wed, 16 Sep 2009 10:55:21 +0400 Subject: [PATCH] Fix bug in jumptable call stubs for SPARC. Seems, that i am the first who tested it.
Signed-off-by: Sergey Mironov ierton@gmail.com --- 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
2009/9/23 Daniel Hellstrom daniel@gaisler.com:
Hi Sergey,
Can you resend your patch, this time signed off (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 app feature :)
Please CC me next time.
Thanks, Daniel
Сергей Миронов 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@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot