# HG changeset patch # User Francisco J Ballesteros # Date 1316450495 -7200 # Node ID 1713b26200dc4789b87529a2f94a1aa83d59d6a8 # Parent 1302c7055fbab0f3d2f5802d380e0d71113e8326 asm: cleanup more silly cleanup, no changes actually. R=nix-dev, rminnich CC=nix-dev http://codereview.appspot.com/5063043 diff -r 1302c7055fba -r 1713b26200dc sys/src/nix/k10/asm.c --- a/sys/src/nix/k10/asm.c Mon Sep 19 17:51:32 2011 +0200 +++ b/sys/src/nix/k10/asm.c Mon Sep 19 18:41:35 2011 +0200 @@ -345,7 +345,7 @@ if(asm->type != AsmMEMORY) continue; va = KSEG2+asm->addr; - print(" %#P %#P %d (%P)\n", + print("asm: addr %#P end %#P type %d size %P\n", asm->addr, asm->addr+asm->size, asm->type, asm->size); @@ -363,26 +363,20 @@ continue; /* This page fits entirely within the range. */ /* Mark it a usable */ -// print("%#P %d\n", mem, i); - if((l = mmuwalk(pml4, va, i, &pte, asmwalkalloc)) < 0) panic("asmmeminit 3"); *pte = mem|PteRW|PteP; if(l > 0) *pte |= PtePS; -//print("pte %#p *pte %#16.16llux l %d\n", pte, *pte, l); nextmem = mem + PGLSZ(i); -/* touch it */ -*((uintptr*)va) = 0; va += PGLSZ(i); npg[i]++; break; } } -// physinit(asm->addr, asm->size); #ifdef ConfCrap /* @@ -429,7 +423,6 @@ for(asm = asmlist; asm != nil; asm = asm->next){ if(asm->type != AsmMEMORY) continue; - if(0)print("asmumeminit: addr %ullx size %ullx\n", asm->addr, asm->size); physinit(asm->addr, asm->size); } physallocdump();