Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm Implement pmap_update(). Currently it just cal...



details:   https://anonhg.NetBSD.org/src/rev/ff6075877627
branches:  trunk
changeset: 517816:ff6075877627
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Nov 19 18:41:32 2001 +0000

description:
Implement pmap_update().  Currently it just calls cpu_cpwait(),
which ensures that TLB/cache operations have completed.

diffstat:

 sys/arch/arm/arm32/pmap.c         |  17 +++++++++++++++--
 sys/arch/arm/include/arm32/pmap.h |   3 +--
 2 files changed, 16 insertions(+), 4 deletions(-)

diffs (55 lines):

diff -r 4e39058722f2 -r ff6075877627 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Mon Nov 19 18:40:15 2001 +0000
+++ b/sys/arch/arm/arm32/pmap.c Mon Nov 19 18:41:32 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.30 2001/11/03 00:06:02 rearnsha Exp $       */
+/*     $NetBSD: pmap.c,v 1.31 2001/11/19 18:41:32 thorpej Exp $        */
 
 /*
  * Copyright (c) 2001 Richard Earnshaw
@@ -142,7 +142,7 @@
 #include <machine/param.h>
 #include <machine/katelib.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.30 2001/11/03 00:06:02 rearnsha Exp $");        
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.31 2001/11/19 18:41:32 thorpej Exp $");        
 #ifdef PMAP_DEBUG
 #define        PDEBUG(_lev_,_stat_) \
        if (pmap_debug_level >= (_lev_)) \
@@ -1727,6 +1727,19 @@
 {
 }
 
+/*
+ * Perform any deferred pmap operations.
+ */
+void
+pmap_update(struct pmap *pmap)
+{
+
+       /*
+        * We haven't deferred any pmap operations, but we do need to
+        * make sure TLB/cache operations have completed.
+        */
+       cpu_cpwait();
+}
 
 /*
  * pmap_clean_page()
diff -r 4e39058722f2 -r ff6075877627 sys/arch/arm/include/arm32/pmap.h
--- a/sys/arch/arm/include/arm32/pmap.h Mon Nov 19 18:40:15 2001 +0000
+++ b/sys/arch/arm/include/arm32/pmap.h Mon Nov 19 18:41:32 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.16 2001/11/03 00:01:23 rearnsha Exp $       */
+/*     $NetBSD: pmap.h,v 1.17 2001/11/19 18:41:33 thorpej Exp $        */
 
 /*
  * Copyright (c) 1994,1995 Mark Brinicombe.
@@ -152,7 +152,6 @@
  * Macros that we need to export
  */
 #define pmap_kernel()                  (&kernel_pmap_store)
-#define pmap_update(pmap)              /* nothing (yet) */
 #define        pmap_resident_count(pmap)       ((pmap)->pm_stats.resident_count)
 #define        pmap_wired_count(pmap)          ((pmap)->pm_stats.wired_count)
 



Home | Main Index | Thread Index | Old Index