diff options
author | Olof Johansson <olof@lixom.net> | 2019-04-11 03:41:52 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-04-24 07:19:46 +0300 |
commit | 10baa64c02f6746fd506136e0693aa2d592574fb (patch) | |
tree | da00e48f0cb5d1434cbc7c31bb6ca15efa7d4564 /include/sbi/sbi_scratch.h | |
parent | fbf986ac2a0b926ae97e6796b87e366610d7589e (diff) | |
download | opensbi-10baa64c02f6746fd506136e0693aa2d592574fb.tar.xz |
all: run clang-format and update checked-in files
Noisy commit, no functional changes.
Generated with an current upstream clang-format and:
clang-format -i $(find . -name \*.[ch])
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'include/sbi/sbi_scratch.h')
-rw-r--r-- | include/sbi/sbi_scratch.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/sbi/sbi_scratch.h b/include/sbi/sbi_scratch.h index fabbab0..f582766 100644 --- a/include/sbi/sbi_scratch.h +++ b/include/sbi/sbi_scratch.h @@ -79,28 +79,28 @@ struct sbi_scratch { /** Possible options for OpenSBI library */ enum sbi_scratch_options { /** Disable prints during boot */ - SBI_SCRATCH_NO_BOOT_PRINTS = (1 << 0), + SBI_SCRATCH_NO_BOOT_PRINTS = (1 << 0), }; /** Get pointer to sbi_scratch for current HART */ -#define sbi_scratch_thishart_ptr() \ -((struct sbi_scratch *)csr_read(CSR_MSCRATCH)) +#define sbi_scratch_thishart_ptr() \ + ((struct sbi_scratch *)csr_read(CSR_MSCRATCH)) /** Get Arg1 of next booting stage for current HART */ -#define sbi_scratch_thishart_arg1_ptr() \ -((void *)(sbi_scratch_thishart_ptr()->next_arg1)) +#define sbi_scratch_thishart_arg1_ptr() \ + ((void *)(sbi_scratch_thishart_ptr()->next_arg1)) /** Get pointer to sbi_ipi_data from sbi_scratch */ -#define sbi_ipi_data_ptr(scratch) \ -((struct sbi_ipi_data *)(void*)scratch + SBI_IPI_DATA_IPI_TYPE_OFFSET) +#define sbi_ipi_data_ptr(scratch) \ + ((struct sbi_ipi_data *)(void *)scratch + SBI_IPI_DATA_IPI_TYPE_OFFSET) /** Get pointer to tlb flush info fifo header from sbi_scratch */ -#define sbi_tlb_fifo_head_ptr(scratch) \ -((struct sbi_fifo *)(void*)scratch + SBI_SCRATCH_TLB_QUEUE_HEAD_OFFSET) +#define sbi_tlb_fifo_head_ptr(scratch) \ + ((struct sbi_fifo *)(void *)scratch + SBI_SCRATCH_TLB_QUEUE_HEAD_OFFSET) /** Get pointer to tlb flush info fifo queue address from sbi_scratch */ -#define sbi_tlb_fifo_mem_ptr(scratch) \ -(void *)((void*)scratch + SBI_SCRATCH_TLB_QUEUE_MEM_OFFSET) +#define sbi_tlb_fifo_mem_ptr(scratch) \ + (void *)((void *)scratch + SBI_SCRATCH_TLB_QUEUE_MEM_OFFSET) #endif |