Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/include/linux Use e_vm_defaul...
details: https://anonhg.NetBSD.org/src/rev/afe899c16dd9
branches: riastradh-drm2
changeset: 788235:afe899c16dd9
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 02:51:06 2013 +0000
description:
Use e_vm_default_addr to choose a default address in Linux vm_mmap.
diffstat:
sys/external/bsd/drm2/include/linux/mm.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r aea6ce5a7077 -r afe899c16dd9 sys/external/bsd/drm2/include/linux/mm.h
--- a/sys/external/bsd/drm2/include/linux/mm.h Wed Jul 24 02:50:51 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/mm.h Wed Jul 24 02:51:06 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mm.h,v 1.1.2.2 2013/07/24 02:04:31 riastradh Exp $ */
+/* $NetBSD: mm.h,v 1.1.2.3 2013/07/24 02:51:06 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
unsigned long prot, unsigned long flags, unsigned long token)
{
struct vnode *vnode;
- vaddr_t addr = 0;
+ vaddr_t addr;
int error;
/*
@@ -94,6 +94,8 @@
/* XXX pax_mprotect? pax_aslr? */
+ addr = (*curproc->p_emul->e_vm_default_addr)(curproc,
+ (vaddr_t)curproc->p_vmspace->vm_daddr, size);
error = uvm_mmap(&curproc->p_vmspace->vm_map, &addr, size,
(VM_PROT_READ | VM_PROT_WRITE), (VM_PROT_READ | VM_PROT_WRITE),
MAP_SHARED, vnode, base,
Home |
Main Index |
Thread Index |
Old Index