Skip to content

Commit

Permalink
Fix register constraint for arm32
Browse files Browse the repository at this point in the history
  • Loading branch information
snaury committed Jan 26, 2012
1 parent cd1d887 commit ea46e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/switch_arm32_gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ slp_switch(void)
register int *stackref, stsizediff;
__asm__ volatile ("" : : : REGS_TO_SAVE);
__asm__ volatile ("str fp,%0" : "=m" (fp));
__asm__ ("mov %0,sp" : "=g" (stackref));
__asm__ ("mov %0,sp" : "=r" (stackref));
{
SLP_SAVE_STATE(stackref, stsizediff);
__asm__ volatile (
Expand Down

0 comments on commit ea46e58

Please sign in to comment.