diff options
author | Olof Johansson <olof@lixom.net> | 2019-04-11 03:41:46 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-04-24 07:19:46 +0300 |
commit | fbf986ac2a0b926ae97e6796b87e366610d7589e (patch) | |
tree | 1d65814b7832b1173c4094e4f91c7da9f491e87a /include/sbi/riscv_barrier.h | |
parent | 97fb8c0e3bcd4d7915ea35020e4d95999d389cd3 (diff) | |
download | opensbi-fbf986ac2a0b926ae97e6796b87e366610d7589e.tar.xz |
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>
Diffstat (limited to 'include/sbi/riscv_barrier.h')
-rw-r--r-- | include/sbi/riscv_barrier.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sbi/riscv_barrier.h b/include/sbi/riscv_barrier.h index ce4b5d1..14ebecc 100644 --- a/include/sbi/riscv_barrier.h +++ b/include/sbi/riscv_barrier.h @@ -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); \ |