mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
mesa: fix broken x86_call()
This commit is contained in:
parent
4d184cc331
commit
1690051521
1 changed files with 8 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
#ifdef USE_X86_ASM
|
||||
#if defined(__i386__) || defined(__386__)
|
||||
|
||||
#include "imports.h"
|
||||
|
|
@ -290,7 +291,7 @@ void x86_call( struct x86_function *p, void (*label)())
|
|||
void x86_call( struct x86_function *p, struct x86_reg reg)
|
||||
{
|
||||
emit_1ub(p, 0xff);
|
||||
emit_modrm(p, reg, reg);
|
||||
emit_modrm_noreg(p, 2, reg);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
@ -1191,3 +1192,9 @@ void x86sse_dummy( void )
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
#else /* USE_X86_ASM */
|
||||
|
||||
int x86sse_c_dummy_var; /* silence warning */
|
||||
|
||||
#endif /* USE_X86_ASM */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue