From b5b1355addbc9f4be4a09e46d5562672e73db8b3 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Mon, 9 Apr 1990 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1990-04-09 --- port/devlance.c | 19 +++++++++++-------- port/devmnt.c | 1 - port/page.c | 1 + port/stream.c | 2 +- power/main.c | 2 +- 5 files changed, 14 insertions(+), 11 deletions(-) diff --git a/port/devlance.c b/port/devlance.c index e92a08218d64f8382edb7c06fb2d979715e74ffc..5bccc5b95f73e27a2bc15dd7ffe1f28334327556 100644 --- a/port/devlance.c +++ b/port/devlance.c @@ -16,7 +16,7 @@ enum { Nrrb= (1<p; + int i; - sprint(buf, "%c: %.8ud %.4d d(%.2ux%.2ux%.2ux%.2ux%.2ux%.2ux)s(%.2ux%.2ux%.2ux%.2ux%.2ux%.2ux)t(%.2ux %.2ux)d(%.2ux%.2ux%.2ux%.2ux%.2ux%.2ux%.2ux%.2ux%.2ux%.2ux%.2ux%.2ux)\n", - t->tag, t->ticks, t->len, - p->d[0], p->d[1], p->d[2], p->d[3], p->d[4], p->d[5], - p->s[0], p->s[1], p->s[2], p->s[3], p->s[4], p->s[5], p->type[0],p->type[1], - p->data[0], p->data[1], p->data[2], p->data[3], p->data[4], p->data[5], - p->data[6], p->data[7], p->data[8], p->data[9], p->data[10], p->data[11]); + sprint(buf, "%c: %.8ud %.4d d(%.2ux%.2ux%.2ux%.2ux%.2ux%.2ux)s(%.2ux%.2ux%.2ux%.2ux%.2ux%.2ux)t(%.2ux %.2ux)d(", + t->tag, t->ticks, t->len, + p->d[0], p->d[1], p->d[2], p->d[3], p->d[4], p->d[5], + p->s[0], p->s[1], p->s[2], p->s[3], p->s[4], p->s[5], + p->type[0], p->type[1]); + for(i=0; i<41; i++) + sprint(buf+strlen(buf), "%.2ux", p->data[i]); + sprint(buf+strlen(buf), ")\n"); } /* diff --git a/port/devmnt.c b/port/devmnt.c index 85cde24aca587ffeaf77c34257751262dfd0f036..c12610398e67cd682e35c8f6d2ad04e56ba22e59 100644 --- a/port/devmnt.c +++ b/port/devmnt.c @@ -382,7 +382,6 @@ mntclose(Chan *c) if(c == m->mntpt) m->mntpt = 0; if(decref(m) == 0){ /* BUG: need to hang up all pending i/o */ -print("close mount table %d\n", m->mntid); qlock(m); close(m->msg); m->msg = 0; diff --git a/port/page.c b/port/page.c index bd47ec9f3b5d9c53956a25dee60d807812568497..54663130711145d96a5b062a1da019ed6a592d6b 100644 --- a/port/page.c +++ b/port/page.c @@ -189,6 +189,7 @@ loop: #endif } print("no physical memory\n"); + pprint("no physical memory\n"); unlock(&palloc); if(u == 0) panic("newpage"); diff --git a/port/stream.c b/port/stream.c index 944348610568e9862b6a964911d8c7db8214fe21..7c16112b653f202c85336e94e5de07d87f71a72c 100644 --- a/port/stream.c +++ b/port/stream.c @@ -58,7 +58,7 @@ Bclass bclass[Nclass]={ { 0 }, { 68 }, { 260 }, - { 1024 }, + { 4096 }, }; /* diff --git a/power/main.c b/power/main.c index 3744b8192e003cf5bddd7f314f400ccd344460c5..dbe7f08e92ddfb7c9754d4511704f45648b48e39 100644 --- a/power/main.c +++ b/power/main.c @@ -370,7 +370,7 @@ confinit(void) } conf.npage = i*1024/4; - conf.npte = 40000; + conf.npte = 50000; conf.nmod = 2000; conf.nalarm = 10000; conf.norig = 500;