X-Git-Url: http://git.rot13.org/?p=DSO138;a=blobdiff_plain;f=Libraries%2FCMSIS%2FCM3%2FCoreSupport%2Fcore_cm3.c;fp=Libraries%2FCMSIS%2FCM3%2FCoreSupport%2Fcore_cm3.c;h=0e8c3c43c8fa5cd9c46c62d5f30c5be761c68c87;hp=56fddc52bfc0513f5b0aa7c927c3488f357ba071;hb=1ab4622435eb076fba5aa7e168e3604aa9a46bbe;hpb=3c43fc3349468130839506cac9ffb59bff00901a diff --git a/Libraries/CMSIS/CM3/CoreSupport/core_cm3.c b/Libraries/CMSIS/CM3/CoreSupport/core_cm3.c index 56fddc5..0e8c3c4 100644 --- a/Libraries/CMSIS/CM3/CoreSupport/core_cm3.c +++ b/Libraries/CMSIS/CM3/CoreSupport/core_cm3.c @@ -733,7 +733,7 @@ uint32_t __STREXB(uint8_t value, uint8_t *addr) { uint32_t result=0; - __ASM volatile ("strexb %0, %2, [%1]" : "=r" (result) : "r" (addr), "r" (value) ); + __ASM volatile ("strexb %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) ); return(result); } @@ -750,7 +750,7 @@ uint32_t __STREXH(uint16_t value, uint16_t *addr) { uint32_t result=0; - __ASM volatile ("strexh %0, %2, [%1]" : "=r" (result) : "r" (addr), "r" (value) ); + __ASM volatile ("strexh %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) ); return(result); }