Skip to content

Commit

Permalink
switch_ppc_unix.h: fix the same bug
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Sep 13, 2024
1 parent d586c39 commit e26ca65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/greenlet/platform/switch_ppc_unix.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ slp_switch(void)
int err;
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"
"add 30, 30, 11\n"
: /* no outputs */
: "g" (stsizediff)
: "r" (stsizediff)
: "11"
);
SLP_RESTORE_STATE();
Expand Down

0 comments on commit e26ca65

Please sign in to comment.