mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 08:38:38 +08:00
toolchain/ghs: Fix SP_DSB warnings
"/mnt/yang/qixinwei_vela_warnings/nuttx/include/nuttx/spinlock.h", line 252: warning #76-D: argument to macro is empty SP_DSB(); ^ "/mnt/yang/qixinwei_vela_warnings/nuttx/include/nuttx/spinlock.h", line 261: warning #76-D: argument to macro is empty SP_DMB(); ^ "/mnt/yang/qixinwei_vela_warnings/nuttx/include/nuttx/spinlock.h", line 252: warning #76-D: argument to macro is empty SP_DSB(); ^ "/mnt/yang/qixinwei_vela_warnings/nuttx/include/nuttx/spinlock.h", line 261: warning #76-D: argument to macro is empty SP_DMB(); ^ "/mnt/yang/qixinwei_vela_warnings/nuttx/include/nuttx/spinlock.h", line 296: warning #76-D: argument to macro is empty SP_DSB(); ^ Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
This commit is contained in:
parent
d76218e817
commit
fecc5091af
5 changed files with 10 additions and 10 deletions
|
@ -59,8 +59,8 @@
|
|||
* all memory accesses are complete
|
||||
*/
|
||||
|
||||
#define SP_DSB(n) __asm__ __volatile__ ("dsb sy" : : : "memory")
|
||||
#define SP_DMB(n) __asm__ __volatile__ ("dmb st" : : : "memory")
|
||||
#define SP_DSB() __asm__ __volatile__ ("dsb sy" : : : "memory")
|
||||
#define SP_DMB() __asm__ __volatile__ ("dmb st" : : : "memory")
|
||||
|
||||
#ifdef CONFIG_ARM_HAVE_WFE_SEV
|
||||
#define SP_WFE() __asm__ __volatile__ ("wfe" : : : "memory")
|
||||
|
|
|
@ -59,8 +59,8 @@
|
|||
* all memory accesses are complete
|
||||
*/
|
||||
|
||||
#define SP_DSB(n) __asm__ __volatile__ ("dsb sy" : : : "memory")
|
||||
#define SP_DMB(n) __asm__ __volatile__ ("dmb st" : : : "memory")
|
||||
#define SP_DSB() __asm__ __volatile__ ("dsb sy" : : : "memory")
|
||||
#define SP_DMB() __asm__ __volatile__ ("dmb st" : : : "memory")
|
||||
|
||||
#define SP_WFE() __asm__ __volatile__ ("wfe" : : : "memory")
|
||||
#define SP_SEV() __asm__ __volatile__ ("sev" : : : "memory")
|
||||
|
|
|
@ -61,8 +61,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define SP_DSB(n) up_dsb()
|
||||
#define SP_DMB(n) up_dmb()
|
||||
#define SP_DSB() up_dsb()
|
||||
#define SP_DMB() up_dmb()
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
|
|
|
@ -59,8 +59,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define SP_DSB(n) __asm__ __volatile__ ("fence")
|
||||
#define SP_DMB(n) __asm__ __volatile__ ("fence")
|
||||
#define SP_DSB() __asm__ __volatile__ ("fence")
|
||||
#define SP_DMB() __asm__ __volatile__ ("fence")
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
|
|
|
@ -55,8 +55,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define SP_DSB(n) __asm__ __volatile__ ("mfence")
|
||||
#define SP_DMB(n) __asm__ __volatile__ ("mfence")
|
||||
#define SP_DSB() __asm__ __volatile__ ("mfence")
|
||||
#define SP_DMB() __asm__ __volatile__ ("mfence")
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
|
|
Loading…
Reference in a new issue