Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 pmap_map_ptes: use cpu_load_pmap() to handl...



details:   https://anonhg.NetBSD.org/src/rev/601a9e9700f6
branches:  trunk
changeset: 766483:601a9e9700f6
user:      rmind <rmind%NetBSD.org@localhost>
date:      Thu Jun 23 16:25:09 2011 +0000

description:
pmap_map_ptes: use cpu_load_pmap() to handle i386 PAE case.
Spotted by cherry@

diffstat:

 sys/arch/x86/x86/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e25dbfcec062 -r 601a9e9700f6 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c   Thu Jun 23 16:12:36 2011 +0000
+++ b/sys/arch/x86/x86/pmap.c   Thu Jun 23 16:25:09 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.124 2011/06/18 21:18:20 rmind Exp $ */
+/*     $NetBSD: pmap.c,v 1.125 2011/06/23 16:25:09 rmind Exp $ */
 
 /*-
  * Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
@@ -171,7 +171,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.124 2011/06/18 21:18:20 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.125 2011/06/23 16:25:09 rmind Exp $");
 
 #include "opt_user_ldt.h"
 #include "opt_lockdebug.h"
@@ -778,7 +778,7 @@
                ci->ci_tlbstate = TLBSTATE_VALID;
                atomic_or_32(&pmap->pm_cpus, cpumask);
                atomic_or_32(&pmap->pm_kernel_cpus, cpumask);
-               lcr3(pmap_pdirpa(pmap, 0));
+               cpu_load_pmap(pmap);
        }
        pmap->pm_ncsw = l->l_ncsw;
        *pmap2 = curpmap;



Home | Main Index | Thread Index | Old Index