M port/devlance.c => port/devlance.c +4 -0
@@ 477,6 477,10 @@ lancestart(void)
l.ea[3] = LANCEID[8]>>8;
l.ea[4] = LANCEID[4]>>8;
l.ea[5] = LANCEID[0]>>8;
+/*
+ print("lance addr = %.4ux %.4ux %.4ux\n", lm->etheraddr[0], lm->etheraddr[1],
+ lm->etheraddr[2]);
+/**/
/*
* ignore multicast addresses
M power/fns.h => power/fns.h +1 -0
@@ 64,6 64,7 @@ Block *getq(Queue*);
void gettlb(int, ulong*);
ulong gettlbvirt(int);
void gotolabel(Label*);
+void gotopc(void*);
void growpte(Orig*, ulong);
void *ialloc(ulong, int);
int incref(Ref*);
M power/l.s => power/l.s +6 -0
@@ 141,6 141,12 @@ TEXT gotolabel(SB), $0
MOVW 4(R2), R29
RET
+TEXT gotopc(SB), $0
+
+ MOVW 0(FP), R2
+ JAL (R2)
+ RET /* shouldn't get here */
+
TEXT puttlb(SB), $4
JAL splhi(SB)