Skip to content

Commit

Permalink
Merge pull request #81 from snaury/fix-mips-return-0
Browse files Browse the repository at this point in the history
Try to fix return 0 on mips
  • Loading branch information
snaury committed May 4, 2015
2 parents ead921d + fa4a72e commit 80b5b33
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions platform/switch_mips_unix.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
static int
slp_switch(void)
{
register int err;
register int *stackref, stsizediff;
#ifdef __mips64
uint64_t gpsave;
Expand All @@ -45,7 +46,8 @@ slp_switch(void)
__asm__ __volatile__ ("ld $28,%0" : : "m" (gpsave) : );
#endif
__asm__ __volatile__ ("" : : : REGS_TO_SAVE);
return 0;
__asm__ __volatile__ ("move %0, $0" : "=r" (err));
return err;
}

#endif
Expand All @@ -54,7 +56,7 @@ slp_switch(void)
* further self-processing support
*/

/*
/*
* if you want to add self-inspection tools, place them
* here. See the x86_msvc for the necessary defines.
* These features are highly experimental und not
Expand Down

0 comments on commit 80b5b33

Please sign in to comment.