Fix bug in jumptable call stubs for SPARC.
Signed-off-by: Sergey Mironov <ierton@gmail.com> Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
This commit is contained in:
parent
f3ee25859e
commit
2c0c58b92d
|
@ -181,9 +181,9 @@ gd_t *global_data;
|
||||||
" or %%g1, %%g7, %%g1\n" \
|
" or %%g1, %%g7, %%g1\n" \
|
||||||
" ld [%%g1], %%g1\n" \
|
" ld [%%g1], %%g1\n" \
|
||||||
" ld [%%g1 + %1], %%g1\n" \
|
" ld [%%g1 + %1], %%g1\n" \
|
||||||
" call %%g1\n" \
|
" jmp %%g1\n" \
|
||||||
" nop\n" \
|
" nop\n" \
|
||||||
: : "i"(offsetof(gd_t, jt)), "i"(XF_ ## x) : "g1" );
|
: : "i"(offsetof(gd_t, jt)), "i"(XF_ ## x * sizeof(void *)) : "g1" );
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#error stubs definition missing for this architecture
|
#error stubs definition missing for this architecture
|
||||||
|
|
Loading…
Reference in New Issue