mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
fix strexh strexb compilation error
This commit is contained in:
parent
16ea2616bd
commit
176cd898a0
1 changed files with 2 additions and 2 deletions
|
@ -760,7 +760,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);
|
||||
}
|
||||
|
||||
|
@ -777,7 +777,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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue