mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 23:41:23 +01:00
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
@@ -12,6 +12,8 @@
|
||||
|
||||
#include <sbi/riscv_asm.h>
|
||||
|
||||
/* clang-format off */
|
||||
|
||||
/** Offset of fw_start member in sbi_scratch */
|
||||
#define SBI_SCRATCH_FW_START_OFFSET (0 * __SIZEOF_POINTER__)
|
||||
/** Offset of fw_size member in sbi_scratch */
|
||||
@@ -43,6 +45,8 @@
|
||||
/** Maximum size of sbi_scratch and sbi_ipi_data */
|
||||
#define SBI_SCRATCH_SIZE (64 * __SIZEOF_POINTER__)
|
||||
|
||||
/* clang-format on */
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
#include <sbi/sbi_types.h>
|
||||
|
Reference in New Issue
Block a user