Remove unused codes.

This commit is contained in:
tsubai 1999-05-06 04:37:44 +00:00
parent 1f4085fb66
commit 661ae33963
1 changed files with 1 additions and 29 deletions

View File

@ -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 @@ extern char *bootpath;
#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_ */