Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh5 The cacheops functions now need the physical ad...



details:   https://anonhg.NetBSD.org/src/rev/27da24a92a8a
branches:  trunk
changeset: 536257:27da24a92a8a
user:      scw <scw%NetBSD.org@localhost>
date:      Thu Sep 12 12:37:49 2002 +0000

description:
The cacheops functions now need the physical address of the region
to be purged/invalidated.

diffstat:

 sys/arch/sh5/include/cacheops.h |  13 +++++++------
 sys/arch/sh5/sh5/sh5_machdep.c  |  13 +++++++------
 2 files changed, 14 insertions(+), 12 deletions(-)

diffs (53 lines):

diff -r e534f3e66ffc -r 27da24a92a8a sys/arch/sh5/include/cacheops.h
--- a/sys/arch/sh5/include/cacheops.h   Thu Sep 12 12:37:27 2002 +0000
+++ b/sys/arch/sh5/include/cacheops.h   Thu Sep 12 12:37:49 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cacheops.h,v 1.2 2002/09/10 11:56:32 scw Exp $ */
+/*     $NetBSD: cacheops.h,v 1.3 2002/09/12 12:37:49 scw Exp $ */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -38,10 +38,11 @@
 #ifndef __SH5_CACHEOPS_H
 #define __SH5_CACHEOPS_H
 
-extern void (*__cpu_cache_dpurge)(vaddr_t, vsize_t);
-extern void (*__cpu_cache_dpurge_iinv)(vaddr_t, vsize_t);
-extern void (*__cpu_cache_dinv)(vaddr_t, vsize_t);
-extern void (*__cpu_cache_dinv_iinv)(vaddr_t, vsize_t);
-extern void (*__cpu_cache_iinv)(vaddr_t, vsize_t);
+extern void (*__cpu_cache_dpurge)(vaddr_t, paddr_t, vsize_t);
+extern void (*__cpu_cache_dpurge_iinv)(vaddr_t, paddr_t, vsize_t);
+extern void (*__cpu_cache_dinv)(vaddr_t, paddr_t, vsize_t);
+extern void (*__cpu_cache_dinv_iinv)(vaddr_t, paddr_t, vsize_t);
+extern void (*__cpu_cache_iinv)(vaddr_t, paddr_t, vsize_t);
+extern void (*__cpu_cache_iinv_all)(void);
 
 #endif /* __SH5_CACHEOPS_H */
diff -r e534f3e66ffc -r 27da24a92a8a sys/arch/sh5/sh5/sh5_machdep.c
--- a/sys/arch/sh5/sh5/sh5_machdep.c    Thu Sep 12 12:37:27 2002 +0000
+++ b/sys/arch/sh5/sh5/sh5_machdep.c    Thu Sep 12 12:37:49 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sh5_machdep.c,v 1.2 2002/09/10 11:59:50 scw Exp $      */
+/*     $NetBSD: sh5_machdep.c,v 1.3 2002/09/12 12:37:49 scw Exp $      */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -63,11 +63,12 @@
  */
 u_int _sh5_delay_constant;
 
-void (*__cpu_cache_dpurge)(vaddr_t, vsize_t);
-void (*__cpu_cache_dpurge_iinv)(vaddr_t, vsize_t);
-void (*__cpu_cache_dinv)(vaddr_t, vsize_t);
-void (*__cpu_cache_dinv_iinv)(vaddr_t, vsize_t);
-void (*__cpu_cache_iinv)(vaddr_t, vsize_t);
+void (*__cpu_cache_dpurge)(vaddr_t, paddr_t, vsize_t);
+void (*__cpu_cache_dpurge_iinv)(vaddr_t, paddr_t, vsize_t);
+void (*__cpu_cache_dinv)(vaddr_t, paddr_t, vsize_t);
+void (*__cpu_cache_dinv_iinv)(vaddr_t, paddr_t, vsize_t);
+void (*__cpu_cache_iinv)(vaddr_t, paddr_t, vsize_t);
+void (*__cpu_cache_iinv_all)(void);
 
 /*
  * These variables are needed by /sbin/savecore



Home | Main Index | Thread Index | Old Index