aboutsummaryrefslogtreecommitdiff
path: root/include/sbi/riscv_asm.h
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2019-04-10 17:41:46 -0700
committerAnup Patel <anup@brainfault.org>2019-04-24 09:49:46 +0530
commitfbf986ac2a0b926ae97e6796b87e366610d7589e (patch)
tree1d65814b7832b1173c4094e4f91c7da9f491e87a /include/sbi/riscv_asm.h
parent97fb8c0e3bcd4d7915ea35020e4d95999d389cd3 (diff)
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_asm.h')
-rw-r--r--include/sbi/riscv_asm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sbi/riscv_asm.h b/include/sbi/riscv_asm.h
index 9648629..39a7615 100644
--- a/include/sbi/riscv_asm.h
+++ b/include/sbi/riscv_asm.h
@@ -12,6 +12,8 @@
#include <sbi/riscv_encoding.h>
+/* clang-format off */
+
#ifdef __ASSEMBLY__
#define __ASM_STR(x) x
#else
@@ -78,6 +80,8 @@
#error "Unexpected __SIZEOF_SHORT__"
#endif
+/* clang-format on */
+
#ifndef __ASSEMBLY__
#define csr_swap(csr, val) \