Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/yamt-km]: src/sys/arch/x68k/x68k convert arch/x68k to new apis.
details: https://anonhg.NetBSD.org/src/rev/87a41eb95f76
branches: yamt-km
changeset: 573305:87a41eb95f76
user: yamt <yamt%NetBSD.org@localhost>
date: Wed Jan 26 12:14:39 2005 +0000
description:
convert arch/x68k to new apis.
diffstat:
sys/arch/x68k/x68k/bus.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r 1035ad2945dc -r 87a41eb95f76 sys/arch/x68k/x68k/bus.c
--- a/sys/arch/x68k/x68k/bus.c Wed Jan 26 12:13:05 2005 +0000
+++ b/sys/arch/x68k/x68k/bus.c Wed Jan 26 12:14:39 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.c,v 1.25 2005/01/18 07:12:16 chs Exp $ */
+/* $NetBSD: bus.c,v 1.25.2.1 2005/01/26 12:14:39 yamt Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus.c,v 1.25 2005/01/18 07:12:16 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus.c,v 1.25.2.1 2005/01/26 12:14:39 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -453,7 +453,7 @@
size = round_page(size);
- va = uvm_km_valloc(kernel_map, size);
+ va = uvm_km_alloc(kernel_map, size, 0, UVM_KMF_VAONLY);
if (va == 0)
return (ENOMEM);
@@ -490,7 +490,9 @@
size = round_page(size);
- uvm_km_free(kernel_map, (vaddr_t)kva, size);
+ pmap_remove(pmap_kernel(), (vaddr_t)kva, (vaddr_t)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