From d4c420689b1872f6fb22f421dfd27704ee94951a Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 23 Apr 2022 20:59:23 +0300 Subject: ran clang-format --- arch/riscv64/include/sbi.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'arch/riscv64/include/sbi.h') diff --git a/arch/riscv64/include/sbi.h b/arch/riscv64/include/sbi.h index b750475..3beedd2 100644 --- a/arch/riscv64/include/sbi.h +++ b/arch/riscv64/include/sbi.h @@ -26,24 +26,27 @@ struct sbiret sbi_ecall(int ext, int fid, unsigned long arg0, unsigned long arg3, unsigned long arg4, unsigned long arg5); -#define EID_TIME 0x54494D45 +#define EID_TIME 0x54494D45 #define FID_SET_TIMER 0 static inline struct sbiret sbi_set_timer(uint64_t stime_value) { /* TODO: read timebase from fdt, seems to be clocks/sec for accurate * timers */ #if __riscv_xlen == 32 - return sbi_ecall(EID_TIME, FID_SET_TIMER, stime_value, stime_value >> 32, 0, 0, 0, 0); + return sbi_ecall(EID_TIME, FID_SET_TIMER, stime_value, + stime_value >> 32, 0, 0, 0, 0); #else return sbi_ecall(EID_TIME, FID_SET_TIMER, stime_value, 0, 0, 0, 0, 0); #endif } -#define EID_SRST 0x53525354 +#define EID_SRST 0x53525354 #define FID_RESET 0 -static inline struct sbiret sbi_system_reset(uint32_t reset_type, uint32_t reset_reason) +static inline struct sbiret sbi_system_reset(uint32_t reset_type, + uint32_t reset_reason) { - return sbi_ecall(EID_SRST, FID_RESET, reset_type, reset_reason, 0, 0, 0, 0); + return sbi_ecall(EID_SRST, FID_RESET, reset_type, reset_reason, 0, 0, 0, + 0); } #endif /* APOS_RISCV_SBI_H */ -- cgit v1.3