Module Name: src
Committed By: matt
Date: Thu Sep 1 18:29:29 UTC 2011
Modified Files:
src/sys/kern: kern_malloc_debug.c
Log Message:
Allocate a color compatible page to the VA we are going to use.
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/kern/kern_malloc_debug.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/kern_malloc_debug.c
diff -u src/sys/kern/kern_malloc_debug.c:1.25 src/sys/kern/kern_malloc_debug.c:1.26
--- src/sys/kern/kern_malloc_debug.c:1.25 Wed Jan 19 09:02:52 2011
+++ src/sys/kern/kern_malloc_debug.c Thu Sep 1 18:29:29 2011
@@ -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 <[email protected]>
@@ -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);