Skip to content

Commit

Permalink
Revert "Use a better l constraint for arm32, which restricts stackref…
Browse files Browse the repository at this point in the history
… to r0-r15"

I didn't look at the correct docs, "l" restricts to lower registers r0-r7,
which restricts the compiler too much. Better use "r" which is already r0-r15.
  • Loading branch information
snaury committed Jan 28, 2012
1 parent 4d1d7d1 commit 26c4643
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" : "=l" (stackref));
__asm__ ("mov %0,sp" : "=r" (stackref));
{
SLP_SAVE_STATE(stackref, stsizediff);
__asm__ volatile (
Expand Down

0 comments on commit 26c4643

Please sign in to comment.