1
0
Fork 0
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:
guoshichao 2024-08-05 14:20:18 +08:00 committed by Xiang Xiao
parent c0eef6c137
commit 7f6fb9ce1c

View file

@ -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