1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-05 09:14:03 +00:00

Remove PG_W bit setting in some cases where it should not be set.

Submitted by:	John Dyson <dyson>
This commit is contained in:
David Greenman 1995-10-23 02:31:29 +00:00
parent 24c9187962
commit 63017f04eb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11703
2 changed files with 6 additions and 6 deletions

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* $Id: pmap.c,v 1.62 1995/10/22 02:59:48 davidg Exp $
* $Id: pmap.c,v 1.63 1995/10/23 00:47:10 davidg Exp $
*/
/*
@ -1276,7 +1276,7 @@ pmap_qenter(va, m, count)
pte = vtopte(va + i * NBPG);
if (*pte)
anyvalid++;
*pte = (pt_entry_t) ((int) (VM_PAGE_TO_PHYS(m[i]) | PG_RW | PG_V | PG_W));
*pte = (pt_entry_t) ((int) (VM_PAGE_TO_PHYS(m[i]) | PG_RW | PG_V));
}
if (anyvalid)
pmap_update();
@ -1318,7 +1318,7 @@ pmap_kenter(va, pa)
if (*pte)
wasvalid++;
*pte = (pt_entry_t) ((int) (pa | PG_RW | PG_V | PG_W));
*pte = (pt_entry_t) ((int) (pa | PG_RW | PG_V));
if (wasvalid)
pmap_update();

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* $Id: pmap.c,v 1.62 1995/10/22 02:59:48 davidg Exp $
* $Id: pmap.c,v 1.63 1995/10/23 00:47:10 davidg Exp $
*/
/*
@ -1276,7 +1276,7 @@ pmap_qenter(va, m, count)
pte = vtopte(va + i * NBPG);
if (*pte)
anyvalid++;
*pte = (pt_entry_t) ((int) (VM_PAGE_TO_PHYS(m[i]) | PG_RW | PG_V | PG_W));
*pte = (pt_entry_t) ((int) (VM_PAGE_TO_PHYS(m[i]) | PG_RW | PG_V));
}
if (anyvalid)
pmap_update();
@ -1318,7 +1318,7 @@ pmap_kenter(va, pa)
if (*pte)
wasvalid++;
*pte = (pt_entry_t) ((int) (pa | PG_RW | PG_V | PG_W));
*pte = (pt_entry_t) ((int) (pa | PG_RW | PG_V));
if (wasvalid)
pmap_update();