Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sun3/sun3 adapt to recent changes in uvm



details:   https://anonhg.NetBSD.org/src/rev/57493ed529ee
branches:  trunk
changeset: 773244:57493ed529ee
user:      para <para%NetBSD.org@localhost>
date:      Sun Jan 29 16:24:01 2012 +0000

description:
adapt to recent changes in uvm

diffstat:

 sys/arch/sun3/sun3/dvma.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 28a3b0368943 -r 57493ed529ee sys/arch/sun3/sun3/dvma.c
--- a/sys/arch/sun3/sun3/dvma.c Sun Jan 29 16:01:36 2012 +0000
+++ b/sys/arch/sun3/sun3/dvma.c Sun Jan 29 16:24:01 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dvma.c,v 1.37 2012/01/27 18:53:03 para Exp $   */
+/*     $NetBSD: dvma.c,v 1.38 2012/01/29 16:24:01 para Exp $   */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dvma.c,v 1.37 2012/01/27 18:53:03 para Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dvma.c,v 1.38 2012/01/29 16:24:01 para Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -82,11 +82,13 @@
         * dvma_extent manages things handled in interrupt
         * context.
         */
-       phys_map = uvm_map_create(pmap_kernel(),
-           DVMA_MAP_BASE, DVMA_MAP_END, 0);
+       phys_map = kmem_alloc(sizeof(struct vm_map), KM_SLEEP);
        if (phys_map == NULL)
                panic("unable to create DVMA map");
 
+       uvm_map_setup(phys_map, DVMA_MAP_BASE, DVMA_MAP_END, 0);
+       phys_map->pmap = pmap_kernel();
+
        /*
         * Reserve the DVMA space used for segment remapping.
         * The remainder of phys_map is used for DVMA scratch



Home | Main Index | Thread Index | Old Index