vm: allow readonly pages when sanity checking when they're supposed to be rw.
This commit is contained in:
parent
e0701109ca
commit
5e2c84b119
1 changed files with 4 additions and 0 deletions
|
@ -581,6 +581,10 @@ PUBLIC int pt_writemap(pt_t *pt, vir_bytes v, phys_bytes physaddr,
|
|||
maskedentry = pt->pt_pt[pde][pte];
|
||||
maskedentry &= ~(I386_VM_ACC|I386_VM_DIRTY);
|
||||
/* Verify pagetable entry. */
|
||||
if(entry & I386_VM_WRITE) {
|
||||
/* If we expect a writable page, allow a readonly page. */
|
||||
maskedentry |= I386_VM_WRITE;
|
||||
}
|
||||
if(maskedentry != entry) {
|
||||
printf("pt_writemap: mismatch: ");
|
||||
if((entry & I386_VM_ADDR_MASK) !=
|
||||
|
|
Loading…
Reference in a new issue