From ceb3282fa624fbd9300ce2240a63380e5a294551 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Fri, 24 May 2002 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 2002-05-24 --- pc/etherelnk3.c | 4 +++- pc/trap.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pc/etherelnk3.c b/pc/etherelnk3.c index fd16423ae34a5b36c63cb80377fa2c20e0cdf0ab..ad68d9ac25662c98140dc59a6fddbf0064bde6e3 100644 --- a/pc/etherelnk3.c +++ b/pc/etherelnk3.c @@ -1777,6 +1777,7 @@ etherelnk3reset(Ether* ether) case 0x5157: /* 3C575 Cyclone */ ctlr->cbfns = KADDR(pcicfgr32(ctlr->pcidev, PciBAR2)); /*FALLTHROUGH*/ + case 0x4500: /* 3C450 HomePNA Tornado */ case 0x6056: case 0x7646: /* 3CSOHO100-TX */ case 0x9055: /* 3C905B-TX */ @@ -1867,8 +1868,9 @@ etherelnk3reset(Ether* ether) if(ctlr->xcvr & autoSelect) ctlr->xcvr = autoselect(ctlr); break; - case 0x6056: + case 0x4500: case 0x5157: + case 0x6056: case 0x7646: case 0x9055: case 0x9200: diff --git a/pc/trap.c b/pc/trap.c index c8d2bccd21f79faf99315ada6f736066f74aab97..d5c7076c1561be3a76f9ed793e01f656b0ada27c 100644 --- a/pc/trap.c +++ b/pc/trap.c @@ -90,7 +90,7 @@ intrdisable(int irq, void (*f)(Ureg *, void *), void *a, int tbdf, char *name) static long irqallocread(Chan*, void *vbuf, long n, vlong offset) { - char *buf, *p, str[11+1+KNAMELEN+1]; + char *buf, *p, str[2*(11+1)+KNAMELEN+1+1]; int m, vno; long oldn; Vctl *v;