Pages mapped by debug_malloc are PMAP_KMPAGE so tell the pmap that.
This commit is contained in:
parent
328f49787a
commit
13d044e16f
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_malloc_debug.c,v 1.19 2008/02/23 16:05:17 chris Exp $ */
|
||||
/* $NetBSD: kern_malloc_debug.c,v 1.20 2008/08/07 01:40:21 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.19 2008/02/23 16:05:17 chris Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_malloc_debug.c,v 1.20 2008/08/07 01:40:21 matt Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/proc.h>
|
||||
|
@ -148,7 +148,8 @@ debug_malloc(unsigned long size, struct malloc_type *type, int flags,
|
|||
debug_malloc_allocs++;
|
||||
splx(s);
|
||||
|
||||
pmap_kenter_pa(md->md_va, md->md_pa, VM_PROT_READ|VM_PROT_WRITE);
|
||||
pmap_kenter_pa(md->md_va, md->md_pa,
|
||||
VM_PROT_READ|VM_PROT_WRITE|PMAP_KMPAGE);
|
||||
pmap_update(pmap_kernel());
|
||||
|
||||
md->md_size = size;
|
||||
|
|
Loading…
Reference in New Issue