changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/9/pc/mmu.c

revision 7404: 6e0c926efd3b
parent 7201: b73a652b1030
child 7491: 1dc036213bad
     1.1--- a/sys/src/9/pc/mmu.c
     1.2+++ b/sys/src/9/pc/mmu.c
     1.3@@ -523,17 +523,9 @@ mmuwalk(ulong* pdb, ulong va, int level,
     1.4 		if(*table & PTESIZE)
     1.5 			panic("mmuwalk2: va %luX entry %luX", va, *table);
     1.6 		if(!(*table & PTEVALID)){
     1.7-			/*
     1.8-			 * Have to call low-level allocator from
     1.9-			 * memory.c if we haven't set up the xalloc
    1.10-			 * tables yet.
    1.11-			 */
    1.12-			if(conf.mem[0].npage != 0)
    1.13-				map = xspanalloc(BY2PG, BY2PG, 0);
    1.14-			else
    1.15-				map = rampage();
    1.16+			map = rampage();
    1.17 			if(map == nil)
    1.18-				panic("mmuwalk xspanalloc failed");
    1.19+				panic("mmuwalk: page alloc failed");
    1.20 			*table = PADDR(map)|PTEWRITE|PTEVALID;
    1.21 		}
    1.22 		table = KADDR(PPN(*table));