mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Be a bit less fast and loose about setting non-cacheablity of pages.
This commit is contained in:
parent
01ab76f4b8
commit
6100ed1d12
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5910
@ -39,7 +39,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
|
||||
* $Id: pmap.c,v 1.42 1995/01/15 09:06:23 davidg Exp $
|
||||
* $Id: pmap.c,v 1.43 1995/01/24 09:56:32 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1192,7 +1192,6 @@ pmap_enter(pmap, va, pa, prot, wired)
|
||||
register pt_entry_t *pte;
|
||||
register pt_entry_t npte;
|
||||
vm_offset_t opa;
|
||||
int cacheable = 1;
|
||||
int ptevalid = 0;
|
||||
|
||||
if (pmap == NULL)
|
||||
@ -1268,12 +1267,8 @@ pmap_enter(pmap, va, pa, prot, wired)
|
||||
pv->pv_next = npv;
|
||||
}
|
||||
splx(s);
|
||||
cacheable = 1;
|
||||
} else {
|
||||
cacheable = 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Increment counters
|
||||
*/
|
||||
@ -1286,11 +1281,6 @@ pmap_enter(pmap, va, pa, prot, wired)
|
||||
* Now validate mapping with desired protection/wiring.
|
||||
*/
|
||||
npte = (pt_entry_t) ((int) (pa | pte_prot(pmap, prot) | PG_V));
|
||||
/*
|
||||
* for correctness:
|
||||
*/
|
||||
if (!cacheable)
|
||||
(int) npte |= PG_N;
|
||||
|
||||
/*
|
||||
* When forking (copy-on-write, etc): A process will turn off write
|
||||
|
@ -39,7 +39,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
|
||||
* $Id: pmap.c,v 1.42 1995/01/15 09:06:23 davidg Exp $
|
||||
* $Id: pmap.c,v 1.43 1995/01/24 09:56:32 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1192,7 +1192,6 @@ pmap_enter(pmap, va, pa, prot, wired)
|
||||
register pt_entry_t *pte;
|
||||
register pt_entry_t npte;
|
||||
vm_offset_t opa;
|
||||
int cacheable = 1;
|
||||
int ptevalid = 0;
|
||||
|
||||
if (pmap == NULL)
|
||||
@ -1268,12 +1267,8 @@ pmap_enter(pmap, va, pa, prot, wired)
|
||||
pv->pv_next = npv;
|
||||
}
|
||||
splx(s);
|
||||
cacheable = 1;
|
||||
} else {
|
||||
cacheable = 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Increment counters
|
||||
*/
|
||||
@ -1286,11 +1281,6 @@ pmap_enter(pmap, va, pa, prot, wired)
|
||||
* Now validate mapping with desired protection/wiring.
|
||||
*/
|
||||
npte = (pt_entry_t) ((int) (pa | pte_prot(pmap, prot) | PG_V));
|
||||
/*
|
||||
* for correctness:
|
||||
*/
|
||||
if (!cacheable)
|
||||
(int) npte |= PG_N;
|
||||
|
||||
/*
|
||||
* When forking (copy-on-write, etc): A process will turn off write
|
||||
|
Loading…
Reference in New Issue
Block a user