M pc/devether.c => pc/devether.c +2 -1
@@ 176,7 176,8 @@ etheriq(Ether* ether, Block* bp, int fromwire)
else if(xbp = iallocb(len)){
memmove(xbp->wp, pkt, len);
xbp->wp += len;
- qpass(f->in, xbp);
+ if(qpass(f->in, xbp) < 0)
+ ether->soverflows++;
}
else
ether->soverflows++;
M pc/i8253.c => pc/i8253.c +1 -1
@@ 259,7 259,7 @@ i8253enable(void)
{
i8253.when = fastticks(nil);
i8253.fastperiod = (m->cpuhz + HZ/2) / HZ;
- i8253.fast2freq = m->cpuhz * FreqMul / Freq;
+ i8253.fast2freq = (vlong)m->cpuhz * FreqMul / Freq;
i8253.enabled = 1;
intrenable(IrqCLOCK, clockintr0, 0, BUSUNKNOWN, "clock");
}