Allocate a color compatible page to the VA we are going to use.
This commit is contained in:
parent
da98893a6f
commit
39830f9f2f
|
@ -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>
|
||||
|
@ -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 @@ debug_malloc_allocate_free(int wait)
|
|||
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue