forked from Mirrors/opensbi
all: Annotate some tables to have clang-format leave them alone
One of the shortcomings of clang-format is that it doesn't allow for aligned define tables, which is used for a number of constants. Add annotation to disable the automatic formatting where needed. Signed-off-by: Olof Johansson <olof@lixom.net>
This commit is contained in:

committed by
Anup Patel

parent
97fb8c0e3b
commit
fbf986ac2a
@@ -10,6 +10,8 @@
|
||||
#ifndef __RISCV_BARRIER_H__
|
||||
#define __RISCV_BARRIER_H__
|
||||
|
||||
/* clang-format off */
|
||||
|
||||
#define RISCV_ACQUIRE_BARRIER "\tfence r , rw\n"
|
||||
#define RISCV_RELEASE_BARRIER "\tfence rw, w\n"
|
||||
|
||||
@@ -37,6 +39,8 @@
|
||||
/* CPU relax for busy loop */
|
||||
#define cpu_relax() asm volatile ("" : : : "memory")
|
||||
|
||||
/* clang-format on */
|
||||
|
||||
#define __smp_store_release(p, v) \
|
||||
do { \
|
||||
RISCV_FENCE(rw,w); \
|
||||
|
Reference in New Issue
Block a user