Skip to content

Commit

Permalink
Merge pull request #146 from kskuhlman/patch-1
Browse files Browse the repository at this point in the history
Update switch_ppc_aix.h
  • Loading branch information
snaury committed May 25, 2019
2 parents 35bda19 + 8911c38 commit 829b44f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/switch_ppc_aix.h
Expand Up @@ -56,14 +56,14 @@ slp_switch(void)
register int err;
register int *stackref, stsizediff;
__asm__ volatile ("" : : : REGS_TO_SAVE);
__asm__ ("mr %0, 1" : "=g" (stackref) : );
__asm__ ("mr %0, 1" : "=r" (stackref) : );
{
SLP_SAVE_STATE(stackref, stsizediff);
__asm__ volatile (
"mr 11, %0\n"
"add 1, 1, 11\n"
: /* no outputs */
: "g" (stsizediff)
: "r" (stsizediff)
: "11"
);
SLP_RESTORE_STATE();
Expand Down

0 comments on commit 829b44f

Please sign in to comment.