From 1a90ffc3397c86abd36873ab92462cd5a2cc0d7e Mon Sep 17 00:00:00 2001 From: jsg Date: Sun, 9 May 2021 06:40:59 +0000 Subject: [PATCH] return type on a different line and use (void) instead of () --- sys/arch/riscv64/riscv64/fpu.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/arch/riscv64/riscv64/fpu.c b/sys/arch/riscv64/riscv64/fpu.c index a992b0a1f8f..beb90897e17 100644 --- a/sys/arch/riscv64/riscv64/fpu.c +++ b/sys/arch/riscv64/riscv64/fpu.c @@ -20,7 +20,8 @@ #include #include "machine/asm.h" -void fpu_clear(struct fpreg *fp) +void +fpu_clear(struct fpreg *fp) { /* rounding mode set to 0, should be RND_NEAREST */ bzero(fp, sizeof (*fp)); @@ -28,7 +29,8 @@ void fpu_clear(struct fpreg *fp) // may look into optimizing this, bit map lookup ? -int fpu_valid_opcode(uint32_t instr) +int +fpu_valid_opcode(uint32_t instr) { int opcode = instr & 0x7f; int valid = 0; @@ -77,13 +79,13 @@ fpu_discard(struct proc *p) } void -fpu_disable() +fpu_disable(void) { __asm volatile ("csrc sstatus, %0" :: "r"(SSTATUS_FS_MASK)); } void -fpu_enable_clean() +fpu_enable_clean(void) { __asm volatile ("csrc sstatus, %0" :: "r"(SSTATUS_FS_MASK)); __asm volatile ("csrs sstatus, %0" :: "r"(SSTATUS_FS_CLEAN)); -- 2.20.1