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 /platform/qemu | |
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 'platform/qemu')
-rw-r--r-- | platform/qemu/sifive_u/platform.c | 4 | ||||
-rw-r--r-- | platform/qemu/virt/platform.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/platform/qemu/sifive_u/platform.c b/platform/qemu/sifive_u/platform.c index cc8993d..9ea090a 100644 --- a/platform/qemu/sifive_u/platform.c +++ b/platform/qemu/sifive_u/platform.c @@ -15,6 +15,8 @@ #include <plat/serial/sifive-uart.h> #include <plat/sys/clint.h> +/* clang-format off */ + #define SIFIVE_U_HART_COUNT 1 #define SIFIVE_U_HART_STACK_SIZE 8192 @@ -30,6 +32,8 @@ #define SIFIVE_U_UART0_ADDR 0x10013000 #define SIFIVE_U_UART1_ADDR 0x10023000 +/* clang-format on */ + static int sifive_u_final_init(bool cold_boot) { void *fdt; diff --git a/platform/qemu/virt/platform.c b/platform/qemu/virt/platform.c index fd4d829..df62991 100644 --- a/platform/qemu/virt/platform.c +++ b/platform/qemu/virt/platform.c @@ -17,6 +17,8 @@ #include <plat/serial/uart8250.h> #include <plat/sys/clint.h> +/* clang-format off */ + #define VIRT_HART_COUNT 8 #define VIRT_HART_STACK_SIZE 8192 @@ -34,6 +36,8 @@ #define VIRT_UART_BAUDRATE 115200 #define VIRT_UART_SHIFTREG_ADDR 1843200 +/* clang-format on */ + static int virt_final_init(bool cold_boot) { void *fdt; |