shithub: riscv

Download patch

ref: 9e2344a5be97b416c73c81f01913702fd6d2da6c
parent: a35cd0f861b6ded0811b5c365635e53710d0e157
author: cinap_lenrek <[email protected]>
date: Sun Apr 5 21:29:12 EDT 2020

pc64: remove rampage() nil check

rampage() never returns nil

--- 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))