summaryrefslogtreecommitdiff
path: root/sys/arch/m88k
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-06-26 01:40:50 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-06-26 01:40:50 +0000
commitdcedd4374abb6f3456f8d6bc995601732ffaacf4 (patch)
treed1505a7186d140aa1f41f3c8e28a12c551ba400a /sys/arch/m88k
parentf02c64296a18ec9595fe6efcb29e617c260ba9b9 (diff)
return type on a dedicated line when declaring functions
ok mglocker@
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r--sys/arch/m88k/include/asm_macro.h14
-rw-r--r--sys/arch/m88k/m88k/db_trace.c6
2 files changed, 12 insertions, 8 deletions
diff --git a/sys/arch/m88k/include/asm_macro.h b/sys/arch/m88k/include/asm_macro.h
index 8875521b8ca..3bd499ab756 100644
--- a/sys/arch/m88k/include/asm_macro.h
+++ b/sys/arch/m88k/include/asm_macro.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm_macro.h,v 1.10 2014/03/29 18:09:29 guenther Exp $ */
+/* $OpenBSD: asm_macro.h,v 1.11 2024/06/26 01:40:49 jsg Exp $ */
/*
* Mach Operating System
* Copyright (c) 1993-1991 Carnegie Mellon University
@@ -43,7 +43,8 @@
/*
* Set the PSR.
*/
-static __inline__ void set_psr(u_int psr)
+static __inline__ void
+set_psr(u_int psr)
{
__asm__ volatile ("stcr %0, %%cr1" :: "r" (psr));
flush_pipeline();
@@ -52,7 +53,8 @@ static __inline__ void set_psr(u_int psr)
/*
* Get the PSR.
*/
-static __inline__ u_int get_psr(void)
+static __inline__ u_int
+get_psr(void)
{
u_int psr;
__asm__ volatile ("ldcr %0, %%cr1" : "=r" (psr));
@@ -62,13 +64,15 @@ static __inline__ u_int get_psr(void)
/*
* Provide access from C code to the assembly instruction ff1
*/
-static __inline__ u_int ff1(u_int val)
+static __inline__ u_int
+ff1(u_int val)
{
__asm__ volatile ("ff1 %0, %0" : "=r" (val) : "0" (val));
return (val);
}
-static __inline__ u_int get_cpu_pid(void)
+static __inline__ u_int
+get_cpu_pid(void)
{
u_int pid;
__asm__ volatile ("ldcr %0, %%cr0" : "=r" (pid));
diff --git a/sys/arch/m88k/m88k/db_trace.c b/sys/arch/m88k/m88k/db_trace.c
index f6482c2c975..47d0b4755ce 100644
--- a/sys/arch/m88k/m88k/db_trace.c
+++ b/sys/arch/m88k/m88k/db_trace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_trace.c,v 1.19 2023/04/11 00:45:07 jsg Exp $ */
+/* $OpenBSD: db_trace.c,v 1.20 2024/06/26 01:40:49 jsg Exp $ */
/*
* Mach Operating System
* Copyright (c) 1993-1991 Carnegie Mellon University
@@ -45,8 +45,8 @@
#define DPRINTF(stmt) do { } while (0)
#endif
-static inline
-u_int br_dest(vaddr_t addr, u_int inst)
+static inline u_int
+br_dest(vaddr_t addr, u_int inst)
{
inst = (inst & 0x03ffffff) << 2;
/* check if sign extension is needed */