1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

Also strex needs to not clobber it's register to have predictable results.

OPReview-227
This commit is contained in:
James Cotton 2012-07-14 19:36:07 -05:00
parent fa3aa20e05
commit ce6bebceb6

View File

@ -767,7 +767,7 @@ uint32_t __STREXW(uint32_t value, uint32_t *addr)
{
uint32_t result=0;
__ASM volatile ("strex %0, %2, [%1]" : "=r" (result) : "r" (addr), "r" (value) );
__ASM volatile ("strex %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) );
return(result);
}