Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/include No more users of xpmap_update(). Use pm...



details:   https://anonhg.NetBSD.org/src/rev/f410d26336e6
branches:  trunk
changeset: 771489:f410d26336e6
user:      jym <jym%NetBSD.org@localhost>
date:      Wed Nov 23 01:16:55 2011 +0000

description:
No more users of xpmap_update(). Use pmap_pte_*() functions now.

diffstat:

 sys/arch/x86/include/pmap.h |  18 +-----------------
 1 files changed, 1 insertions(+), 17 deletions(-)

diffs (32 lines):

diff -r 28437c2b0107 -r f410d26336e6 sys/arch/x86/include/pmap.h
--- a/sys/arch/x86/include/pmap.h       Wed Nov 23 01:15:02 2011 +0000
+++ b/sys/arch/x86/include/pmap.h       Wed Nov 23 01:16:55 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.47 2011/11/23 00:56:56 jym Exp $    */
+/*     $NetBSD: pmap.h,v 1.48 2011/11/23 01:16:55 jym Exp $    */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -440,22 +440,6 @@
        return (paddr_t) (((*up_pte) & PG_FRAME) + (((vaddr_t) pte) & (~PG_FRAME & ~VA_SIGN_MASK)));
 }
 
-/*
- * xpmap_update()
- * Update an active pt entry with Xen
- * Equivalent to *pte = npte
- */
-
-static __inline void
-xpmap_update (pt_entry_t *pte, pt_entry_t npte)
-{
-        int s = splvm();
-
-        xpq_queue_pte_update(xpmap_ptetomach(pte), npte);
-        xpq_flush_queue();
-        splx(s);
-}
-
 /* Xen helpers to change bits of a pte */
 #define XPMAP_UPDATE_DIRECT    1       /* Update direct map entry flags too */
 



Home | Main Index | Thread Index | Old Index