Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips In the MULTIPROCESSOR case where another ...



details:   https://anonhg.NetBSD.org/src/rev/2b98086907a4
branches:  trunk
changeset: 329074:2b98086907a4
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon May 05 05:55:21 2014 +0000

description:
In the MULTIPROCESSOR case where another thread wins the race to allocate
a new segtab page call mips_pmap_unmap_poolpage on the page our thread
allocated and called mips_pmap_map_poolpage for.

diffstat:

 sys/arch/mips/mips/pmap_segtab.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 9f3c24662dd9 -r 2b98086907a4 sys/arch/mips/mips/pmap_segtab.c
--- a/sys/arch/mips/mips/pmap_segtab.c  Sun May 04 22:18:38 2014 +0000
+++ b/sys/arch/mips/mips/pmap_segtab.c  Mon May 05 05:55:21 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_segtab.c,v 1.6 2014/05/04 17:06:23 skrll Exp $    */
+/*     $NetBSD: pmap_segtab.c,v 1.7 2014/05/05 05:55:21 skrll Exp $    */
 
 /*-
  * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap_segtab.c,v 1.6 2014/05/04 17:06:23 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_segtab.c,v 1.7 2014/05/05 05:55:21 skrll Exp $");
 
 /*
  *     Manages physical address maps.
@@ -455,6 +455,7 @@
                 * free the page we just allocated.
                 */
                if (__predict_false(opte != NULL)) {
+                       mips_pmap_unmap_poolpage(pa);
                        uvm_pagefree(pg);
                        pte = opte;
                }



Home | Main Index | Thread Index | Old Index