Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/yamt-km]: src/sys/arch/hp700/hp700 convert arch/hp700 to new apis.
details: https://anonhg.NetBSD.org/src/rev/9bb851b063f2
branches: yamt-km
changeset: 573319:9bb851b063f2
user: yamt <yamt%NetBSD.org@localhost>
date: Mon Jan 31 12:25:33 2005 +0000
description:
convert arch/hp700 to new apis.
diffstat:
sys/arch/hp700/hp700/machdep.c | 7 ++++---
sys/arch/hp700/hp700/mainbus.c | 10 ++++++----
2 files changed, 10 insertions(+), 7 deletions(-)
diffs (66 lines):
diff -r b852a458de38 -r 9bb851b063f2 sys/arch/hp700/hp700/machdep.c
--- a/sys/arch/hp700/hp700/machdep.c Mon Jan 31 12:23:23 2005 +0000
+++ b/sys/arch/hp700/hp700/machdep.c Mon Jan 31 12:25:33 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.20 2004/07/24 18:59:05 chs Exp $ */
+/* $NetBSD: machdep.c,v 1.20.6.1 2005/01/31 12:25:33 yamt Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.20 2004/07/24 18:59:05 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.20.6.1 2005/01/31 12:25:33 yamt Exp $");
#include "opt_cputype.h"
#include "opt_ddb.h"
@@ -887,7 +887,8 @@
* This page is handed to pmap_enter() therefore
* it has to be in the normal kernel VA range.
*/
- vmmap = uvm_km_valloc_wait(kernel_map, PAGE_SIZE);
+ vmmap = uvm_km_alloc(kernel_map, PAGE_SIZE, 0,
+ UVM_KMF_VAONLY | UVM_KMF_WAITVA);
}
/*
diff -r b852a458de38 -r 9bb851b063f2 sys/arch/hp700/hp700/mainbus.c
--- a/sys/arch/hp700/hp700/mainbus.c Mon Jan 31 12:23:23 2005 +0000
+++ b/sys/arch/hp700/hp700/mainbus.c Mon Jan 31 12:25:33 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mainbus.c,v 1.22 2004/12/14 02:32:02 chs Exp $ */
+/* $NetBSD: mainbus.c,v 1.22.4.1 2005/01/31 12:25:33 yamt Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.22 2004/12/14 02:32:02 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.22.4.1 2005/01/31 12:25:33 yamt Exp $");
#include "locators.h"
@@ -1240,7 +1240,7 @@
}
/* Get a chunk of kernel virtual space. */
- va = uvm_km_valloc(kernel_map, size);
+ va = uvm_km_alloc(kernel_map, size, 0, UVM_KMF_VAONLY);
if (va == 0)
return (ENOMEM);
@@ -1282,7 +1282,9 @@
return;
size = round_page(size);
- uvm_unmap(kernel_map, (vaddr_t)kva, (vaddr_t)kva + size);
+ pmap_kremove(kva, size);
+ pmap_update(pmap_kernel());
+ uvm_km_free(kernel_map, (vaddr_t)kva, size, UVM_KMF_VAONLY);
}
/*
Home |
Main Index |
Thread Index |
Old Index