ref: 1f82d9935cc6f99e7463ee86a0be4f15a01ff5fd
parent: 7eca0297b8c0c25d1154558d62301a5b2675825b
parent: 2b7a5fb5f79864fe831184bc8482b416568144af
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Apr 5 21:31:35 EDT 2020
merge
--- a/sys/src/9/pc/mmu.c
+++ b/sys/src/9/pc/mmu.c
@@ -524,8 +524,7 @@
panic("mmuwalk2: va %luX entry %luX", va, *table); if(!(*table & PTEVALID)){map = rampage();
- if(map == nil)
- panic("mmuwalk: page alloc failed");+ memset(map, 0, BY2PG);
*table = PADDR(map)|PTEWRITE|PTEVALID;
}
table = KADDR(PPN(*table));
--- a/sys/src/9/pc64/mmu.c
+++ b/sys/src/9/pc64/mmu.c
@@ -299,8 +299,6 @@
if(pte == nil || (*pte & PTESIZE) == 0 || (va & PGLSZ(1)-1) == 0)
return;
table = rampage();
- if(table == nil)
- panic("ptesplit: out of memory\n");va &= -PGLSZ(1);
pa = *pte & ~PTESIZE;
for(off = 0; off < PGLSZ(1); off += PGLSZ(0))
--
⑨