summaryrefslogtreecommitdiff
path: root/sys/arch/mvmeppc/stand
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-01-25 14:51:47 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-01-25 14:51:47 +0000
commit02da63e56116c14bfcbe9c314b6760f39b725371 (patch)
tree1f96d516160de3447345fcaa07db82e14e70dc4d /sys/arch/mvmeppc/stand
parent33c19090cfc4fc3301321575ef88746a0c9b132f (diff)
syncicache() is inline from <machine/cpu.h>, no need for a different version
here.
Diffstat (limited to 'sys/arch/mvmeppc/stand')
-rw-r--r--sys/arch/mvmeppc/stand/libsa/Makefile4
-rw-r--r--sys/arch/mvmeppc/stand/libsa/cache.c23
2 files changed, 2 insertions, 25 deletions
diff --git a/sys/arch/mvmeppc/stand/libsa/Makefile b/sys/arch/mvmeppc/stand/libsa/Makefile
index 388bbce025a..c54da8dfee8 100644
--- a/sys/arch/mvmeppc/stand/libsa/Makefile
+++ b/sys/arch/mvmeppc/stand/libsa/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.5 2004/01/25 14:47:31 miod Exp $
+# $OpenBSD: Makefile,v 1.6 2004/01/25 14:51:46 miod Exp $
LIB=sa
@@ -24,7 +24,7 @@ SRC_kern= ashrdi3.c bzero.c
SRC_mvme= exec_mvme.c
-SRC_here= bugdev.c cache.c clock.c conf.c parse_args.c rawfs.c tftpfs.c
+SRC_here= bugdev.c clock.c conf.c parse_args.c rawfs.c tftpfs.c
SRCS= ${SRC_net} ${SRC_sa} ${SRC_mvme} ${SRC_here} ${SRC_kern}
diff --git a/sys/arch/mvmeppc/stand/libsa/cache.c b/sys/arch/mvmeppc/stand/libsa/cache.c
deleted file mode 100644
index 7c6f8b4de97..00000000000
--- a/sys/arch/mvmeppc/stand/libsa/cache.c
+++ /dev/null
@@ -1,23 +0,0 @@
-/* $OpenBSD: cache.c,v 1.1 2001/06/26 21:58:07 smurph Exp $ */
-#define CACHELINESIZE 32 /* For now XXX */
-
-void
-syncicache(from, len)
- void *from;
- int len;
-{
- int l = len;
- void *p = from;
-
- do {
- asm volatile ("dcbf %1,%0" :: "r"(p), "r"(0));
- p += CACHELINESIZE;
- } while ((l -= CACHELINESIZE) > 0);
- asm volatile ("sync");
- do {
- asm volatile ("icbi %1,%0" :: "r"(from), "r"(0));
- from += CACHELINESIZE;
- } while ((len -= CACHELINESIZE) > 0);
- asm volatile ("isync");
-}
-