summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-12-18 23:53:32 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-12-18 23:53:32 +0100
commitd9c4637a5f65da6cc6972765c0be9a05c8483ef5 (patch)
tree4dc9a7db2f07dadbd1d91c879abfb7b308479035
parentf52e85826f72d6ee16b167d11c85fef31399b61b (diff)
downloadplan9front-d9c4637a5f65da6cc6972765c0be9a05c8483ef5.tar.xz
kernel: remove "checked xxx page table entries" print from checkpages()
the purpose of checkpages() is to verify consitency of the hardware mmu state, not to notify on the console that a program faulted. a program could also continue after handling the note. (this seems to be the case in go programs)
-rw-r--r--sys/src/9/port/fault.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/src/9/port/fault.c b/sys/src/9/port/fault.c
index 478e29f3d..45c3959b3 100644
--- a/sys/src/9/port/fault.c
+++ b/sys/src/9/port/fault.c
@@ -389,7 +389,6 @@ extern void checkmmu(uintptr, uintptr);
void
checkpages(void)
{
- int checked;
uintptr addr, off;
Pte *p;
Page *pg;
@@ -398,7 +397,6 @@ checkpages(void)
if(up == nil)
return;
- checked = 0;
for(sp=up->seg, ep=&up->seg[NSEG]; sp<ep; sp++){
if((s = *sp) == nil)
continue;
@@ -411,9 +409,7 @@ checkpages(void)
if(pagedout(pg))
continue;
checkmmu(addr, pg->pa);
- checked++;
}
qunlock(s);
}
- print("%ld %s: checked %d page table entries\n", up->pid, up->text, checked);
}