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 don't bother to register kernel ptp to uvm_...
details: https://anonhg.NetBSD.org/src/rev/e207dafb668c
branches: trunk
changeset: 764258:e207dafb668c
user: yamt <yamt%NetBSD.org@localhost>
date: Thu Apr 14 16:00:21 2011 +0000
description:
don't bother to register kernel ptp to uvm_object. from yamt-vmem branch.
diffstat:
sys/arch/x86/x86/pmap.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diffs (31 lines):
diff -r d67f19f503d9 -r e207dafb668c sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c Thu Apr 14 15:57:02 2011 +0000
+++ b/sys/arch/x86/x86/pmap.c Thu Apr 14 16:00:21 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.118 2011/02/11 23:08:38 jmcneill Exp $ */
+/* $NetBSD: pmap.c,v 1.119 2011/04/14 16:00:21 yamt Exp $ */
/*
* Copyright (c) 2007 Manuel Bouyer.
@@ -142,7 +142,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.118 2011/02/11 23:08:38 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.119 2011/04/14 16:00:21 yamt Exp $");
#include "opt_user_ldt.h"
#include "opt_lockdebug.h"
@@ -4212,11 +4212,8 @@
kpreempt_enable();
} else {
/* XXX */
- PMAP_SUBOBJ_LOCK(kpm, level - 1);
- ptp = uvm_pagealloc(&kpm->pm_obj[level - 1],
- ptp_va2o(va, level), NULL,
+ ptp = uvm_pagealloc(NULL, 0, NULL,
UVM_PGA_USERESERVE|UVM_PGA_ZERO);
- PMAP_SUBOBJ_UNLOCK(kpm, level - 1);
if (ptp == NULL)
panic("pmap_get_physpage: out of memory");
ptp->flags &= ~PG_BUSY;
Home |
Main Index |
Thread Index |
Old Index