From: jsg Date: Sun, 9 May 2021 06:40:59 +0000 (+0000) Subject: return type on a different line and use (void) instead of () X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1a90ffc3397c86abd36873ab92462cd5a2cc0d7e;p=openbsd return type on a different line and use (void) instead of () --- 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));