From eb48cfbc390b678bc9cc3572ae7040ff9e1c2303 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Sun, 2 May 1993 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1993-05-02 --- port/devcons.c | 3 +++ port/sysproc.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/port/devcons.c b/port/devcons.c index ea1c3dd14eaf00463a4fd9b6cc680e89f07641ec..e4abb9be05586f19f59026e1b0c172f8884ec89b 100644 --- a/port/devcons.c +++ b/port/devcons.c @@ -509,6 +509,8 @@ consread(Chan *c, void *buf, long n, ulong offset) qunlock(&kbdq); nexterror(); } + return getline((char*)buf, n); +#ifdef asdf while(!cangetc(&lineq)){ sleep(&kbdq.r, isbrkc, &kbdq); do{ @@ -547,6 +549,7 @@ consread(Chan *c, void *buf, long n, ulong offset) *cbuf++ = ch; --n; } +#endif asdf poperror(); qunlock(&kbdq); return i; diff --git a/port/sysproc.c b/port/sysproc.c index 05794fcbc156e21ddc99d2b21022256539afb921..f3f5e19fc8229cd9c3258711f1cde0ba44c61379 100644 --- a/port/sysproc.c +++ b/port/sysproc.c @@ -373,7 +373,7 @@ sysexec(ulong *arg) up->seg[SSEG] = s; s->base = USTKTOP-USTKSIZE; s->top = USTKTOP; - relocateseg(s, TSTKTOP-USTKTOP); + relocateseg(s, USTKTOP-TSTKTOP); close(tc);