diff options
author | Olof Johansson <olof@lixom.net> | 2019-04-10 17:41:52 -0700 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-04-24 09:49:46 +0530 |
commit | 10baa64c02f6746fd506136e0693aa2d592574fb (patch) | |
tree | da00e48f0cb5d1434cbc7c31bb6ca15efa7d4564 /include/sbi/sbi_trap.h | |
parent | fbf986ac2a0b926ae97e6796b87e366610d7589e (diff) |
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_trap.h')
-rw-r--r-- | include/sbi/sbi_trap.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/sbi/sbi_trap.h b/include/sbi/sbi_trap.h index e2a52b5..19b95a7 100644 --- a/include/sbi/sbi_trap.h +++ b/include/sbi/sbi_trap.h @@ -86,10 +86,9 @@ /* clang-format on */ /** Get offset of member with name 'x' in sbi_trap_regs */ -#define SBI_TRAP_REGS_OFFSET(x) \ - ((SBI_TRAP_REGS_##x) * __SIZEOF_POINTER__) +#define SBI_TRAP_REGS_OFFSET(x) ((SBI_TRAP_REGS_##x) * __SIZEOF_POINTER__) /** Size (in bytes) of sbi_trap_regs */ -#define SBI_TRAP_REGS_SIZE SBI_TRAP_REGS_OFFSET(last) +#define SBI_TRAP_REGS_SIZE SBI_TRAP_REGS_OFFSET(last) #ifndef __ASSEMBLY__ @@ -169,12 +168,10 @@ struct sbi_trap_regs { struct sbi_scratch; -int sbi_trap_redirect(struct sbi_trap_regs *regs, - struct sbi_scratch *scratch, +int sbi_trap_redirect(struct sbi_trap_regs *regs, struct sbi_scratch *scratch, ulong epc, ulong cause, ulong tval); -void sbi_trap_handler(struct sbi_trap_regs *regs, - struct sbi_scratch *scratch); +void sbi_trap_handler(struct sbi_trap_regs *regs, struct sbi_scratch *scratch); #endif |