Applied a cothread setup patch for IRIX from Nick Blievers

Original commit message from CVS:
Applied a cothread setup patch for IRIX from Nick Blievers
<nick.blievers@adacel.com>
This commit is contained in:
Wim Taymans 2001-12-18 16:50:05 +00:00
parent e279738a3f
commit 4771e9affc

View file

@ -134,10 +134,10 @@ struct minimal_stackframe {
#elif defined(HAVE_CPU_MIPS)
#define GST_ARCH_SET_SP(stackpointer) \
__asm__("move $sp,%0\n\t" : : "r"(stackpointer));
__asm__("lw $sp,0(%0)\n\t" : : "r"(stackpointer));
#define GST_ARCH_CALL(target) \
__asm__("move $25,%1\n\t" /* call via $25 */ \
__asm__("lw $25,0(%0)\n\t" /* call via $25 */ \
"jal $25\n\t" : : "r"(target));
/* assuming the stackframe is 16 bytes */