forked from nuttx/nuttx-update
greenhills: add the "__sync_synchronize" func impl
we add ghs header file support using to fix the following link error: [elxr] (error #412) unresolved symbols: 1 __sync_synchronize from libopenamp.a(io.o) Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
parent
c0eef6c137
commit
7f6fb9ce1c
1 changed files with 13 additions and 0 deletions
|
@ -754,3 +754,16 @@ SYNC_VAL_CMP_SWAP(4, uint32_t)
|
|||
SYNC_VAL_CMP_SWAP(8, uint64_t)
|
||||
|
||||
#endif /* __clang__ */
|
||||
|
||||
#ifdef __ghs__
|
||||
|
||||
/****************************************************************************
|
||||
* Name: __sync_synchronize
|
||||
****************************************************************************/
|
||||
|
||||
void weak_function __sync_synchronize(void)
|
||||
{
|
||||
asm volatile("" ::: "memory");
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue