Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc fix sparc after kmem_map is gone
details: https://anonhg.NetBSD.org/src/rev/c4249a69d531
branches: trunk
changeset: 773235:c4249a69d531
user: para <para%NetBSD.org@localhost>
date: Sun Jan 29 11:49:58 2012 +0000
description:
fix sparc after kmem_map is gone
diffstat:
sys/arch/sparc/sparc/pmap.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r e8e422bf2b8d -r c4249a69d531 sys/arch/sparc/sparc/pmap.c
--- a/sys/arch/sparc/sparc/pmap.c Sun Jan 29 11:49:02 2012 +0000
+++ b/sys/arch/sparc/sparc/pmap.c Sun Jan 29 11:49:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.347 2011/10/22 21:00:40 mrg Exp $ */
+/* $NetBSD: pmap.c,v 1.348 2012/01/29 11:49:58 para Exp $ */
/*
* Copyright (c) 1996
@@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.347 2011/10/22 21:00:40 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.348 2012/01/29 11:49:58 para Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -880,7 +880,7 @@
return (NULL);
/* Allocate virtual memory */
- va = uvm_km_alloc(kmem_map, PAGE_SIZE, 0, UVM_KMF_VAONLY |
+ va = uvm_km_alloc(kernel_map, PAGE_SIZE, 0, UVM_KMF_VAONLY |
((flags & PR_WAITOK) ? 0 : UVM_KMF_NOWAIT | UVM_KMF_TRYLOCK));
if (va == 0) {
uvm_pagefree(pg);
@@ -917,7 +917,7 @@
KASSERT(rv);
uvm_pagefree(PHYS_TO_VM_PAGE(pa));
pmap_kremove(va, PAGE_SIZE);
- uvm_km_free(kmem_map, va, PAGE_SIZE, UVM_KMF_VAONLY);
+ uvm_km_free(kernel_map, va, PAGE_SIZE, UVM_KMF_VAONLY);
}
#endif /* SUN4M || SUN4D */
Home |
Main Index |
Thread Index |
Old Index