Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/nvmm Ah, should be UVM_ADV_RANDOM.



details:   https://anonhg.NetBSD.org/src/rev/d991eb959b11
branches:  trunk
changeset: 837059:d991eb959b11
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun Nov 18 07:42:24 2018 +0000

description:
Ah, should be UVM_ADV_RANDOM.

diffstat:

 sys/dev/nvmm/nvmm.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 36fe8d9f1488 -r d991eb959b11 sys/dev/nvmm/nvmm.c
--- a/sys/dev/nvmm/nvmm.c       Sun Nov 18 06:28:39 2018 +0000
+++ b/sys/dev/nvmm/nvmm.c       Sun Nov 18 07:42:24 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nvmm.c,v 1.1 2018/11/07 07:43:08 maxv Exp $    */
+/*     $NetBSD: nvmm.c,v 1.2 2018/11/18 07:42:24 maxv Exp $    */
 
 /*
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nvmm.c,v 1.1 2018/11/07 07:43:08 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nvmm.c,v 1.2 2018/11/18 07:42:24 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -545,7 +545,7 @@
        /* Map the uobj into the machine address space, as pageable. */
        error = uvm_map(&mach->vm->vm_map, &gpa, args->size, mach->uobj,
            args->gpa, 0, UVM_MAPFLAG(UVM_PROT_RWX, UVM_PROT_RWX,
-           UVM_INH_NONE, UVM_ADV_NORMAL, UVM_FLAG_FIXED));
+           UVM_INH_NONE, UVM_ADV_RANDOM, UVM_FLAG_FIXED));
        if (error) {
                uao_detach(mach->uobj);
                goto out;
@@ -565,7 +565,7 @@
        /* Map the uobj into the user address space, as pageable. */
        error = uvm_map(&vmspace->vm_map, &uva, args->size, mach->uobj,
            args->gpa, 0, UVM_MAPFLAG(UVM_PROT_RW, UVM_PROT_RW,
-           UVM_INH_SHARE, UVM_ADV_NORMAL, UVM_FLAG_FIXED|UVM_FLAG_UNMAP));
+           UVM_INH_SHARE, UVM_ADV_RANDOM, UVM_FLAG_FIXED|UVM_FLAG_UNMAP));
        if (error) {
                uao_detach(mach->uobj);
                goto out;



Home | Main Index | Thread Index | Old Index