diff options
author | Sergey Mironov <ierton@gmail.com> | 2009-09-23 16:47:38 +0400 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2009-10-27 14:09:40 +0100 |
commit | 2c0c58b92dbb68007061bdc0edd23bdf142efebf (patch) | |
tree | f0412043c3ec535c8890aa96df50fd784091953c /examples | |
parent | f3ee25859e3920ee7c7cc519a3e6f60d70d7a53f (diff) | |
download | u-boot-imx-2c0c58b92dbb68007061bdc0edd23bdf142efebf.zip u-boot-imx-2c0c58b92dbb68007061bdc0edd23bdf142efebf.tar.gz u-boot-imx-2c0c58b92dbb68007061bdc0edd23bdf142efebf.tar.bz2 |
Fix bug in jumptable call stubs for SPARC.
Signed-off-by: Sergey Mironov <ierton@gmail.com>
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Diffstat (limited to 'examples')
-rw-r--r-- | 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 339bbf9..ce3371d 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 |