Make sure to pass mod/ref seeds with PMAP_WIRED.

This commit is contained in:
thorpej 2003-10-06 00:40:36 +00:00
parent a665876c87
commit 388386eef7

View File

@ -1,4 +1,4 @@
/* $NetBSD: i80312_space.c,v 1.6 2003/07/15 00:24:53 lukem Exp $ */
/* $NetBSD: i80312_space.c,v 1.7 2003/10/06 00:40:36 thorpej Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: i80312_space.c,v 1.6 2003/07/15 00:24:53 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: i80312_space.c,v 1.7 2003/10/06 00:40:36 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -324,7 +324,8 @@ i80312_mem_bs_map(void *t, bus_addr_t bpa, bus_size_t size, int flags,
for (; pa < endpa; pa += PAGE_SIZE, va += PAGE_SIZE) {
pmap_enter(pmap_kernel(), va, pa,
VM_PROT_READ | VM_PROT_WRITE, PMAP_WIRED);
VM_PROT_READ | VM_PROT_WRITE,
VM_PROT_READ | VM_PROT_WRITE | PMAP_WIRED);
}
pmap_update(pmap_kernel());