M pc/devether.c => pc/devether.c +4 -6
@@ 88,9 88,8 @@ etherbread(Chan *c, long n, ulong offset)
}
void
-etherremove(Chan *c)
+etherremove(Chan*)
{
- USED(c);
}
void
@@ 145,7 144,7 @@ etherwloop(Ether *ctlr, Etherpkt *pkt, long len)
int s, different;
different = memcmp(pkt->d, ctlr->ea, sizeof(pkt->d));
- if(!ctlr->prom && different && memcmp(pkt->d, ctlr->bcast, sizeof(pkt->d)))
+ if(different && memcmp(pkt->d, ctlr->bcast, sizeof(pkt->d)))
return 0;
s = splhi();
@@ 156,11 155,10 @@ etherwloop(Ether *ctlr, Etherpkt *pkt, long len)
}
long
-etherwrite(Chan *c, void *buf, long n, ulong offset)
+etherwrite(Chan *c, void *buf, long n, ulong)
{
Ether *ctlr;
- USED(offset);
if(n > ETHERMAXTU)
error(Ebadarg);
ctlr = ether[c->dev];
@@ 177,8 175,8 @@ etherwrite(Chan *c, void *buf, long n, ulong offset)
nexterror();
}
n = (*ctlr->write)(ctlr, buf, n);
- poperror();
qunlock(&ctlr->tlock);
+ poperror();
return n;
}
M pc/devrtc.c => pc/devrtc.c +3 -7
@@ 113,9 113,8 @@ rtccreate(Chan*, char*, int, ulong)
}
void
-rtcclose(Chan *c)
+rtcclose(Chan*)
{
- USED(c);
}
#define GETBCD(o) ((bcdclock[o]&0xf) + 10*(bcdclock[o]>>4))
@@ 218,7 217,6 @@ rtcwrite(Chan *c, void *buf, long n, ulong offset)
uchar bcdclock[Nbcd];
char *cp, *ep;
- USED(c);
if(offset!=0)
error(Ebadarg);
@@ 288,16 286,14 @@ rtcbwrite(Chan *c, Block *bp, ulong offset)
}
void
-rtcremove(Chan *c)
+rtcremove(Chan*)
{
- USED(c);
error(Eperm);
}
void
-rtcwstat(Chan *c, char *dp)
+rtcwstat(Chan*, char*)
{
- USED(c, dp);
error(Eperm);
}
M pc/l.s => pc/l.s +15 -6
@@ 555,24 555,33 @@ intrscommon:
/*
* interrupt level is interrupts on or off
*/
-TEXT spllo(SB),$0
- PUSHFL
- POPL AX
- STI
- RET
-
TEXT splhi(SB),$0
+ MOVL m(SB), AX /* save PC in m->splpc */
+ MOVL (SP), BX
+ MOVL BX, 4(AX)
+
PUSHFL
POPL AX
CLI
RET
TEXT splx(SB),$0
+ MOVL m(SB), AX /* save PC in m->splpc */
+ MOVL (SP), BX
+ MOVL BX, 4(AX)
+
MOVL s+0(FP),AX
PUSHL AX
POPFL
RET
+TEXT spllo(SB),$0
+ PUSHFL
+ POPL AX
+ STI
+TEXT spldone(SB), $0
+ RET
+
TEXT getstatus(SB),$0
PUSHFL
POPL AX
M pc/vgaark2000pv.c => pc/vgaark2000pv.c +4 -4
@@ 154,16 154,16 @@ move(Point p)
*/
if((x = p.x+hotpoint.x) < 0){
xo = -x;
- x = 1;
+ x = 0;
}
else
- xo = 1;
+ xo = 0;
if((y = p.y+hotpoint.y) < 0){
yo = -y;
- y = 1;
+ y = 0;
}
else
- yo = 1;
+ yo = 0;
/*
* Load the new values.