mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Fixed typo in generated comment.
This commit is contained in:
parent
afc71be60c
commit
7f8f7deab9
1 changed files with 2 additions and 2 deletions
|
@ -101,10 +101,10 @@ static inline uint8_t __basepriSetRetVal(uint8_t prio)
|
|||
// this macro uses local function for cleanup. CLang block can be substituded
|
||||
#define ATOMIC_BARRIER(data) \
|
||||
__extension__ void __UNIQL(__barrierEnd)(typeof(data) **__d) { \
|
||||
__asm__ volatile ("\t# barier(" #data ") end\n" : : "m" (**__d)); \
|
||||
__asm__ volatile ("\t# barrier(" #data ") end\n" : : "m" (**__d)); \
|
||||
} \
|
||||
typeof(data) __attribute__((__cleanup__(__UNIQL(__barrierEnd)))) *__UNIQL(__barrier) = &data; \
|
||||
__asm__ volatile ("\t# barier (" #data ") start\n" : "+m" (*__UNIQL(__barrier)))
|
||||
__asm__ volatile ("\t# barrier (" #data ") start\n" : "+m" (*__UNIQL(__barrier)))
|
||||
|
||||
|
||||
// define these wrappers for atomic operations, use gcc buildins
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue