Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/include Remove unused codes.



details:   https://anonhg.NetBSD.org/src/rev/e7af0c9efc06
branches:  trunk
changeset: 472741:e7af0c9efc06
user:      tsubai <tsubai%NetBSD.org@localhost>
date:      Thu May 06 04:37:44 1999 +0000

description:
Remove unused codes.

diffstat:

 sys/arch/macppc/include/cpu.h |  30 +-----------------------------
 1 files changed, 1 insertions(+), 29 deletions(-)

diffs (44 lines):

diff -r 39c722651bfa -r e7af0c9efc06 sys/arch/macppc/include/cpu.h
--- a/sys/arch/macppc/include/cpu.h     Thu May 06 01:50:56 1999 +0000
+++ b/sys/arch/macppc/include/cpu.h     Thu May 06 04:37:44 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.7 1999/05/03 05:19:59 tsubai Exp $   */
+/*     $NetBSD: cpu.h,v 1.8 1999/05/06 04:37:44 tsubai Exp $   */
 
 /*
  * Copyright (C) 1995-1997 Wolfgang Solfrank.
@@ -61,34 +61,6 @@
 #define        CACHELINESIZE   32
 #endif
 
-extern void flushcache __P((void *, int));
-
-extern __inline void
-flushcache(from, len)
-       void *from;
-       int len;
-{
-       int l, off;
-       char *p;
-
-       off = (int)from & (CACHELINESIZE - 1);
-       from = (char *)from - off;
-       len += off;
-
-       l = len; p = from;
-       do {
-               __asm__ __volatile ("dcbf 0,%0" :: "r"(p));
-               p += CACHELINESIZE;
-       } while ((l -= CACHELINESIZE) > 0);
-       __asm__ __volatile ("sync");
-       l = len; p = from;
-       do {
-               __asm__ __volatile ("icbi 0,%0" :: "r"(p));
-               p += CACHELINESIZE;
-       } while ((l -= CACHELINESIZE) > 0);
-       __asm__ __volatile ("isync");
-}
-
 #include <powerpc/cpu.h>
 
 #endif /* _MACHINE_CPU_H_ */



Home | Main Index | Thread Index | Old Index