diff options
| author | thorpej <thorpej@NetBSD.org> | 2000-03-05 18:46:14 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2000-03-05 18:46:14 +0000 |
| commit | 23c5667cfebfe341d00a2ad95bb8ff4ba2cac24a (patch) | |
| tree | 02d1da3433f5b5d20921cba13fb848547cf7f6a9 /sys/arch | |
| parent | 015db55a921389a49d7e0e9820e049219b833b40 (diff) | |
Use ANSI-style function declarations for the various inline functions
here. Addresses port-alpha/9056.
Diffstat (limited to 'sys/arch')
| -rw-r--r-- | sys/arch/alpha/include/alpha_cpu.h | 27 | ||||
| -rw-r--r-- | sys/arch/alpha/include/atomic.h | 22 | ||||
| -rw-r--r-- | sys/arch/alpha/include/bwx.h | 22 |
3 files changed, 22 insertions, 49 deletions
diff --git a/sys/arch/alpha/include/alpha_cpu.h b/sys/arch/alpha/include/alpha_cpu.h index 95c24f40d77..a2e775d181d 100644 --- a/sys/arch/alpha/include/alpha_cpu.h +++ b/sys/arch/alpha/include/alpha_cpu.h @@ -1,4 +1,4 @@ -/* $NetBSD: alpha_cpu.h,v 1.36 1999/12/02 22:08:04 thorpej Exp $ */ +/* $NetBSD: alpha_cpu.h,v 1.37 2000/03/05 18:46:14 thorpej Exp $ */ /* * Copyright (c) 1996 Carnegie-Mellon University. @@ -430,8 +430,7 @@ alpha_pal_rdval() } static __inline unsigned long -alpha_pal_swpctx(ctx) - unsigned long ctx; +alpha_pal_swpctx(unsigned long ctx) { register unsigned long a0 __asm("$16") = ctx; register unsigned long v0 __asm("$0"); @@ -446,8 +445,7 @@ alpha_pal_swpctx(ctx) } static __inline unsigned long -alpha_pal_swpipl(ipl) - unsigned long ipl; +alpha_pal_swpipl(unsigned long ipl) { register unsigned long a0 __asm("$16") = ipl; register unsigned long v0 __asm("$0"); @@ -462,9 +460,7 @@ alpha_pal_swpipl(ipl) } static __inline void -alpha_pal_tbi(op, va) - unsigned long op; - vaddr_t va; +alpha_pal_tbi(unsigned long op, vaddr_t va) { register unsigned long a0 __asm("$16") = op; register unsigned long a1 __asm("$17") = va; @@ -491,8 +487,7 @@ alpha_pal_whami() } static __inline void -alpha_pal_wrfen(onoff) - unsigned long onoff; +alpha_pal_wrfen(unsigned long onoff) { register unsigned long a0 __asm("$16") = onoff; @@ -504,8 +499,7 @@ alpha_pal_wrfen(onoff) } static __inline void -alpha_pal_wripir(cpu_id) - unsigned long cpu_id; +alpha_pal_wripir(unsigned long cpu_id) { register unsigned long a0 __asm("$16") = cpu_id; @@ -517,8 +511,7 @@ alpha_pal_wripir(cpu_id) } static __inline void -alpha_pal_wrusp(usp) - unsigned long usp; +alpha_pal_wrusp(unsigned long usp) { register unsigned long a0 __asm("$16") = usp; @@ -530,8 +523,7 @@ alpha_pal_wrusp(usp) } static __inline void -alpha_pal_wrmces(mces) - unsigned long mces; +alpha_pal_wrmces(unsigned long mces) { register unsigned long a0 __asm("$16") = mces; @@ -543,8 +535,7 @@ alpha_pal_wrmces(mces) } static __inline void -alpha_pal_wrval(val) - unsigned long val; +alpha_pal_wrval(unsigned long val) { register unsigned long a0 __asm("$16") = val; diff --git a/sys/arch/alpha/include/atomic.h b/sys/arch/alpha/include/atomic.h index 2d92fecaa85..9f7e204f456 100644 --- a/sys/arch/alpha/include/atomic.h +++ b/sys/arch/alpha/include/atomic.h @@ -1,4 +1,4 @@ -/* $NetBSD: atomic.h,v 1.2 1999/12/03 01:13:17 thorpej Exp $ */ +/* $NetBSD: atomic.h,v 1.3 2000/03/05 18:46:14 thorpej Exp $ */ /*- * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc. @@ -64,9 +64,7 @@ static __inline unsigned long alpha_atomic_loadlatch_q * Atomically set bits in a quadword. */ static __inline void -alpha_atomic_setbits_q(ulp, v) - __volatile unsigned long *ulp; - unsigned long v; +alpha_atomic_setbits_q(__volatile unsigned long *ulp, unsigned long v) { unsigned long t0; @@ -91,9 +89,7 @@ alpha_atomic_setbits_q(ulp, v) * Atomically clear bits in a quadword. */ static __inline void -alpha_atomic_clearbits_q(ulp, v) - __volatile unsigned long *ulp; - unsigned long v; +alpha_atomic_clearbits_q(__volatile unsigned long *ulp, unsigned long v) { unsigned long t0; @@ -118,9 +114,7 @@ alpha_atomic_clearbits_q(ulp, v) * Atomically add a value to a quadword. */ static __inline void -alpha_atomic_add_q(ulp, v) - __volatile unsigned long *ulp; - unsigned long v; +alpha_atomic_add_q(__volatile unsigned long *ulp, unsigned long v) { unsigned long t0; @@ -145,9 +139,7 @@ alpha_atomic_add_q(ulp, v) * Atomically subtract a value from a quadword. */ static __inline void -alpha_atomic_sub_q(ulp, v) - __volatile unsigned long *ulp; - unsigned long v; +alpha_atomic_sub_q(__volatile unsigned long *ulp, unsigned long v) { unsigned long t0; @@ -172,9 +164,7 @@ alpha_atomic_sub_q(ulp, v) * Atomically load and latch a quadword value. */ static __inline unsigned long -alpha_atomic_loadlatch_q(ulp, v) - __volatile unsigned long *ulp; - unsigned long v; +alpha_atomic_loadlatch_q(__volatile unsigned long *ulp, unsigned long v) { unsigned long t0, v0; diff --git a/sys/arch/alpha/include/bwx.h b/sys/arch/alpha/include/bwx.h index d0f71b291af..af9c2a6339e 100644 --- a/sys/arch/alpha/include/bwx.h +++ b/sys/arch/alpha/include/bwx.h @@ -1,4 +1,4 @@ -/* $NetBSD: bwx.h,v 1.1 1999/12/02 19:41:40 thorpej Exp $ */ +/* $NetBSD: bwx.h,v 1.2 2000/03/05 18:46:15 thorpej Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -62,8 +62,7 @@ static __inline u_int16_t alpha_sextw __P((u_int16_t)) __attribute__((__unused__)); static __inline u_int8_t -alpha_ldbu(a0) - __volatile u_int8_t *a0; +alpha_ldbu(__volatile u_int8_t *a0) { u_int8_t v0; @@ -75,8 +74,7 @@ alpha_ldbu(a0) } static __inline u_int16_t -alpha_ldwu(a0) - __volatile u_int16_t *a0; +alpha_ldwu(__volatile u_int16_t *a0) { u_int16_t v0; @@ -88,9 +86,7 @@ alpha_ldwu(a0) } static __inline void -alpha_stb(a0, a1) - __volatile u_int8_t *a0; - u_int8_t a1; +alpha_stb(__volatile u_int8_t *a0, u_int8_t a1) { __asm __volatile("stb %1, %0" @@ -99,9 +95,7 @@ alpha_stb(a0, a1) } static __inline void -alpha_stw(a0, a1) - __volatile u_int16_t *a0; - u_int16_t a1; +alpha_stw(__volatile u_int16_t *a0, u_int16_t a1) { __asm __volatile("stw %1, %0" @@ -110,8 +104,7 @@ alpha_stw(a0, a1) } static __inline u_int8_t -alpha_sextb(a0) - u_int8_t a0; +alpha_sextb(u_int8_t a0) { u_int8_t v0; @@ -123,8 +116,7 @@ alpha_sextb(a0) } static __inline u_int16_t -alpha_sextw(a0) - u_int16_t a0; +alpha_sextw(u_int16_t a0) { u_int16_t v0; |
