Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/dev kill VM_DEFAULT_ADDRESS use.
details: https://anonhg.NetBSD.org/src/rev/92f932f96c46
branches: trunk
changeset: 326337:92f932f96c46
user: christos <christos%NetBSD.org@localhost>
date: Sun Jan 26 00:09:46 2014 +0000
description:
kill VM_DEFAULT_ADDRESS use.
diffstat:
sys/arch/x68k/dev/grf.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 68135dd40cde -r 92f932f96c46 sys/arch/x68k/dev/grf.c
--- a/sys/arch/x68k/dev/grf.c Sun Jan 26 00:08:48 2014 +0000
+++ b/sys/arch/x68k/dev/grf.c Sun Jan 26 00:09:46 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: grf.c,v 1.40 2011/02/08 20:20:25 rmind Exp $ */
+/* $NetBSD: grf.c,v 1.41 2014/01/26 00:09:46 christos Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: grf.c,v 1.40 2011/02/08 20:20:25 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: grf.c,v 1.41 2014/01/26 00:09:46 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -270,8 +270,9 @@
if (*addrp)
flags |= MAP_FIXED;
else
- *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);
+
vn.v_type = VCHR; /* XXX */
vn.v_rdev = dev; /* XXX */
error = uvm_mmap(&p->p_vmspace->vm_map, (vaddr_t *)addrp,
Home |
Main Index |
Thread Index |
Old Index