Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Allocate a color compatible page to the VA we are g...
details: https://anonhg.NetBSD.org/src/rev/af3a1dafcc47
branches: trunk
changeset: 769169:af3a1dafcc47
user: matt <matt%NetBSD.org@localhost>
date: Thu Sep 01 18:29:29 2011 +0000
description:
Allocate a color compatible page to the VA we are going to use.
diffstat:
sys/kern/kern_malloc_debug.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5ebbf18a201a -r af3a1dafcc47 sys/kern/kern_malloc_debug.c
--- a/sys/kern/kern_malloc_debug.c Thu Sep 01 18:25:44 2011 +0000
+++ b/sys/kern/kern_malloc_debug.c Thu Sep 01 18:29:29 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_malloc_debug.c,v 1.25 2011/01/19 09:02:52 cegger Exp $ */
+/* $NetBSD: kern_malloc_debug.c,v 1.26 2011/09/01 18:29:29 matt Exp $ */
/*
* Copyright (c) 1999, 2000 Artur Grabowski <art%openbsd.org@localhost>
@@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_malloc_debug.c,v 1.25 2011/01/19 09:02:52 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_malloc_debug.c,v 1.26 2011/09/01 18:29:29 matt Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -247,7 +247,7 @@
offset = va - vm_map_min(kernel_map);
for (;;) {
- pg = uvm_pagealloc(NULL, offset, NULL, 0);
+ pg = uvm_pagealloc(NULL, offset, NULL, UVM_FLAG_COLORMATCH);
if (pg) {
pg->flags &= ~PG_BUSY; /* new page */
UVM_PAGE_OWN(pg, NULL);
Home |
Main Index |
Thread Index |
Old Index