From 2c0c58b92dbb68007061bdc0edd23bdf142efebf Mon Sep 17 00:00:00 2001 From: Sergey Mironov Date: Wed, 23 Sep 2009 16:47:38 +0400 Subject: Fix bug in jumptable call stubs for SPARC. Signed-off-by: Sergey Mironov Signed-off-by: Daniel Hellstrom --- examples/standalone/stubs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/standalone/stubs.c b/examples/standalone/stubs.c index 339bbf9b56..ce3371d912 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 -- cgit v1.2.1