Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sh3/sh3 Make sure cache_sh[34]_op_*() functions act...



details:   https://anonhg.NetBSD.org/src/rev/f266412c8343
branches:  trunk
changeset: 542276:f266412c8343
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Jan 25 04:21:01 2003 +0000

description:
Make sure cache_sh[34]_op_*() functions actually inlined.

diffstat:

 sys/arch/sh3/sh3/cache_sh3.c |   6 +++---
 sys/arch/sh3/sh3/cache_sh4.c |  10 +++++-----
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (66 lines):

diff -r 5609ad1f8ac1 -r f266412c8343 sys/arch/sh3/sh3/cache_sh3.c
--- a/sys/arch/sh3/sh3/cache_sh3.c      Sat Jan 25 02:12:22 2003 +0000
+++ b/sys/arch/sh3/sh3/cache_sh3.c      Sat Jan 25 04:21:01 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cache_sh3.c,v 1.7 2002/11/08 14:58:25 tsutsui Exp $    */
+/*     $NetBSD: cache_sh3.c,v 1.8 2003/01/25 04:21:01 tsutsui Exp $    */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -138,7 +138,7 @@
  *     Clear the specified bits on single 16-byte cache line. n-ways.
  *
  */
-void
+static __inline__ void
 cache_sh3_op_line_16_nway(int n, vaddr_t va, u_int32_t bits)
 {
        vaddr_t cca;
@@ -160,7 +160,7 @@
  *     Clear the specified bits on 8 16-byte cache lines, n-ways.
  *
  */
-void
+static __inline__ void
 cache_sh3_op_8lines_16_nway(int n, vaddr_t va, u_int32_t bits)
 {
        __volatile__ u_int32_t *cca;
diff -r 5609ad1f8ac1 -r f266412c8343 sys/arch/sh3/sh3/cache_sh4.c
--- a/sys/arch/sh3/sh3/cache_sh4.c      Sat Jan 25 02:12:22 2003 +0000
+++ b/sys/arch/sh3/sh3/cache_sh4.c      Sat Jan 25 04:21:01 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cache_sh4.c,v 1.7 2002/11/08 14:58:25 tsutsui Exp $    */
+/*     $NetBSD: cache_sh4.c,v 1.8 2003/01/25 04:21:01 tsutsui Exp $    */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -55,9 +55,9 @@
 void sh4_dcache_wb_range(vaddr_t, vsize_t);
 
 /* must be inlined. */
-extern __inline__ void cache_sh4_op_line_32(vaddr_t, vaddr_t, u_int32_t,
+static __inline__ void cache_sh4_op_line_32(vaddr_t, vaddr_t, u_int32_t,
     u_int32_t);
-extern __inline__ void cache_sh4_op_8lines_32(vaddr_t, vaddr_t, u_int32_t,
+static __inline__ void cache_sh4_op_8lines_32(vaddr_t, vaddr_t, u_int32_t,
     u_int32_t);
 
 void
@@ -111,7 +111,7 @@
  *     Clear the specified bits on single 32-byte cache line.
  *
  */
-void
+static __inline__ void
 cache_sh4_op_line_32(vaddr_t va, vaddr_t base, u_int32_t mask, u_int32_t bits)
 {
        vaddr_t cca;
@@ -126,7 +126,7 @@
  *     Clear the specified bits on 8 32-byte cache lines.
  *
  */
-void
+static __inline__ void
 cache_sh4_op_8lines_32(vaddr_t va, vaddr_t base, u_int32_t mask, u_int32_t bits)
 {
        __volatile__ u_int32_t *cca = (__volatile__ u_int32_t *)



Home | Main Index | Thread Index | Old Index