Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/yamt-km]: src/sys/arch/sun2/sun2 convert arch/sun2 to new apis.
details: https://anonhg.NetBSD.org/src/rev/ed871a51189b
branches: yamt-km
changeset: 573317:ed871a51189b
user: yamt <yamt%NetBSD.org@localhost>
date: Mon Jan 31 12:22:05 2005 +0000
description:
convert arch/sun2 to new apis.
diffstat:
sys/arch/sun2/sun2/machdep.c | 10 ++++++----
sys/arch/sun2/sun2/pmap.c | 6 +++---
2 files changed, 9 insertions(+), 7 deletions(-)
diffs (65 lines):
diff -r bd3a4c683b3f -r ed871a51189b sys/arch/sun2/sun2/machdep.c
--- a/sys/arch/sun2/sun2/machdep.c Mon Jan 31 12:19:14 2005 +0000
+++ b/sys/arch/sun2/sun2/machdep.c Mon Jan 31 12:22:05 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.36 2005/01/22 15:36:09 chs Exp $ */
+/* $NetBSD: machdep.c,v 1.36.2.1 2005/01/31 12:22:05 yamt Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@@ -160,7 +160,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.36 2005/01/22 15:36:09 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.36.2.1 2005/01/31 12:22:05 yamt Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -338,7 +338,8 @@
/*
* Get scratch page for dumpsys().
*/
- if ((dumppage = uvm_km_alloc(kernel_map, PAGE_SIZE)) == 0)
+ if ((dumppage = uvm_km_alloc(kernel_map, PAGE_SIZE,0, UVM_KMF_WIRED))
+ == 0)
panic("startup: alloc dumppage");
@@ -371,7 +372,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);
/*
* Allocate DMA map for devices on the bus.
diff -r bd3a4c683b3f -r ed871a51189b sys/arch/sun2/sun2/pmap.c
--- a/sys/arch/sun2/sun2/pmap.c Mon Jan 31 12:19:14 2005 +0000
+++ b/sys/arch/sun2/sun2/pmap.c Mon Jan 31 12:22:05 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.25 2005/01/22 15:36:09 chs Exp $ */
+/* $NetBSD: pmap.c,v 1.25.2.1 2005/01/31 12:22:05 yamt Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -89,7 +89,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.25 2005/01/22 15:36:09 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.25.2.1 2005/01/31 12:22:05 yamt Exp $");
#include "opt_ddb.h"
#include "opt_pmap_debug.h"
@@ -1072,7 +1072,7 @@
/* Now allocate the whole thing. */
sz = m68k_round_page(sz);
- p = (char *)uvm_km_alloc(kernel_map, sz);
+ p = (char *)uvm_km_alloc(kernel_map, sz, 0, UVM_KMF_WIRED);
if (p == NULL)
panic("pmap:pv_init: alloc failed");
memset(p, 0, sz);
Home |
Main Index |
Thread Index |
Old Index