Commit 2c0c58b9 authored by Sergey Mironov's avatar Sergey Mironov Committed by Daniel Hellstrom

Fix bug in jumptable call stubs for SPARC.

Signed-off-by: default avatarSergey Mironov <ierton@gmail.com>
Signed-off-by: default avatarDaniel Hellstrom <daniel@gaisler.com>
parent f3ee2585
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment