Use pte_cache_mode instead of PT_CACHEABLE.

This commit is contained in:
thorpej 2002-04-05 03:42:39 +00:00
parent 6142b898f3
commit 388879eeaf
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mainbus_io.c,v 1.8 2002/03/24 03:37:25 thorpej Exp $ */
/* $NetBSD: mainbus_io.c,v 1.9 2002/04/05 03:42:39 thorpej Exp $ */
/*
* Copyright (c) 1997 Mark Brinicombe.
@ -163,9 +163,9 @@ mainbus_bs_map(t, bpa, size, cacheable, bshp)
pmap_kenter_pa(va, pa, VM_PROT_READ | VM_PROT_WRITE);
pte = vtopte(va);
if (cacheable)
*pte |= PT_CACHEABLE;
*pte |= pte_cache_mode;
else
*pte &= ~PT_CACHEABLE;
*pte &= ~pte_cache_mode;
}
pmap_update(pmap_kernel());