Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm km_vacache_alloc: specify va hint correctly rather than



details:   https://anonhg.NetBSD.org/src/rev/c591239da48a
branches:  trunk
changeset: 572446:c591239da48a
user:      yamt <yamt%NetBSD.org@localhost>
date:      Mon Jan 03 04:01:13 2005 +0000

description:
km_vacache_alloc: specify va hint correctly rather than
using stack garbage.  PR/28845.

diffstat:

 sys/uvm/uvm_km.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 6b99fdb42ff0 -r c591239da48a sys/uvm/uvm_km.c
--- a/sys/uvm/uvm_km.c  Mon Jan 03 03:25:06 2005 +0000
+++ b/sys/uvm/uvm_km.c  Mon Jan 03 04:01:13 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_km.c,v 1.72 2005/01/01 21:08:02 yamt Exp $ */
+/*     $NetBSD: uvm_km.c,v 1.73 2005/01/03 04:01:13 yamt Exp $ */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -134,7 +134,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_km.c,v 1.72 2005/01/01 21:08:02 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_km.c,v 1.73 2005/01/03 04:01:13 yamt Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -191,6 +191,7 @@
 
        map = KM_VACACHE_POOL_TO_MAP(pp);
 
+       va = vm_map_min(map); /* hint */
        if (uvm_map(map, &va, size, NULL, UVM_UNKNOWN_OFFSET, size,
            UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, UVM_INH_NONE,
            UVM_ADV_RANDOM, UVM_FLAG_QUANTUM |



Home | Main Index | Thread Index | Old Index