Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mac68k/dev kill VM_DEFAULT_ADDRESS use



details:   https://anonhg.NetBSD.org/src/rev/68135dd40cde
branches:  trunk
changeset: 326336:68135dd40cde
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 26 00:08:48 2014 +0000

description:
kill VM_DEFAULT_ADDRESS use

diffstat:

 sys/arch/mac68k/dev/grf_compat.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 30b01be9c15b -r 68135dd40cde sys/arch/mac68k/dev/grf_compat.c
--- a/sys/arch/mac68k/dev/grf_compat.c  Sat Jan 25 23:58:41 2014 +0000
+++ b/sys/arch/mac68k/dev/grf_compat.c  Sun Jan 26 00:08:48 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: grf_compat.c,v 1.22 2010/06/06 04:52:17 mrg Exp $      */
+/*     $NetBSD: grf_compat.c,v 1.23 2014/01/26 00:08:48 christos Exp $ */
 
 /*
  * Copyright (C) 1999 Scott Reynolds
@@ -34,7 +34,7 @@
 #include "opt_grf_compat.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: grf_compat.c,v 1.22 2010/06/06 04:52:17 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: grf_compat.c,v 1.23 2014/01/26 00:08:48 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -315,7 +315,8 @@
        int error, flags;
 
        len = m68k_round_page(sc->sc_dc->dc_offset + sc->sc_dc->dc_size);
-       *addrp = (void *)VM_DEFAULT_ADDRESS(p->p_vmspace->vm_daddr, len);
+       *addrp = (void *)p->p_emul->e_vm_default_addr(p,
+           p->p_vmspace->vm_daddr, len);
        flags = MAP_SHARED | MAP_FIXED;
 
        vn.v_type = VCHR;               /* XXX */



Home | Main Index | Thread Index | Old Index