From aba5ae13e4d18d1df1a621f7057568d3769e860d Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Thu, 2 Jul 1998 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1998-07-02 --- ip/ipifc.c | 3 +++ pc/archgeneric.c | 4 ++-- port/devcons.c | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ip/ipifc.c b/ip/ipifc.c index b9385fa5fffc262bbb55fd2f28f749f21d79cfa7..7274502ca2465a159e5138b6428c50398d7fb675 100644 --- a/ip/ipifc.c +++ b/ip/ipifc.c @@ -329,6 +329,9 @@ ipifcadd(Ipifc *ifc, char **argv, int argc) int i, type, mtu; Fs *f; + if(ifc->m == nil) + return "ipifc not yet bound to device"; + f = ifc->conv->p->f; memset(ip, 0, IPaddrlen); diff --git a/pc/archgeneric.c b/pc/archgeneric.c index 0ec0ae3b3e4451ffa3c8a3698ffee1f55fc1b080..d2945c0cd4e557be9eb17a9b43ffea61a44d517e 100644 --- a/pc/archgeneric.c +++ b/pc/archgeneric.c @@ -86,8 +86,8 @@ static X86type x86amd[] = { 5, 1, 23, "AMD-K5", }, /* guesswork */ { 5, 2, 23, "AMD-K5", }, /* guesswork */ { 5, 3, 23, "AMD-K5", }, /* guesswork */ - { 5, 6, 23, "AMD-K6", }, /* guesswork */ - { 5, 7, 23, "AMD-K6", }, /* guesswork */ + { 5, 6, 11, "AMD-K6", }, /* determined by trial and error */ + { 5, 7, 11, "AMD-K6", }, /* determined by trial and error */ { 5, 8, 23, "AMD-K6 3D", }, /* guesswork */ { 5, 9, 23, "AMD-K6 3D+", },/* guesswork */ diff --git a/port/devcons.c b/port/devcons.c index 9afbd1ac2ad4cea9c4e812ba7e0f413d28b53e4e..de7c8f920573db5a65627031145060f752049349 100644 --- a/port/devcons.c +++ b/port/devcons.c @@ -903,7 +903,7 @@ static struct Rendez producer; Rendez consumer; ulong randomcount; - uchar buf[4096]; + uchar buf[1024]; uchar *ep; uchar *rp; uchar *wp;