~kris/9p

9hist

cf30230c5c81a54346e729d3ccd6f2358034880a — David du Colombier 35 years ago 7c67f17
Plan 9 from Bell Labs 1991-05-04
6 files changed, 9 insertions(+), 6 deletions(-)

M port/devip.c
M port/portdat.h
M port/stip.c
M port/stream.c
M ss/faultsparc.c
M ss/trap.c
M port/devip.c => port/devip.c +1 -1
@@ 602,7 602,7 @@ tcpstopen(Queue *q, Stream *s)
		Tcpoutput = WR(q);
		/* This never goes away - we use this queue to send acks/rejects */
		s->opens++;

		s->inuse++;
		/* Flow control and tcp timer processes */
		kproc("tcpack", tcpackproc, 0);
		kproc("tcpflow", tcpflow, &ipconv[s->dev]);

M port/portdat.h => port/portdat.h +6 -2
@@ 347,8 347,12 @@ struct Proc
	int	wokeup;			/* whether sleep was interrupted */
	ulong	pc;			/* DEBUG only */
	int	kp;			/* true if a kernel process */
	union {
		int	pidonmach[MAXMACH];	/* !!Compatability with mips!! */
	/*
	 *  MMU goo.  which of the fillowing fields gets used depends on the
	 *  processor.
	 */
	struct {
		int	pidonmach[MAXMACH];
		MMU	*mmu;
		int	nmmuseg;		/* number of segments active in mmu */
	};

M port/stip.c => port/stip.c +1 -0
@@ 73,6 73,7 @@ ipetheropen(Queue *q, Stream *s)
	if(!Etherq) {
		Etherq = WR(q);
		s->opens++;		/* Hold this queue in place */
		s->inuse++;
	}

	DPRINT("ipetheropen EQ %lux dev=%d id=%d RD %lux WR %lux\n",

M port/stream.c => port/stream.c +1 -0
@@ 808,6 808,7 @@ streamnew(ushort type, ushort dev, ushort id, Qinfo *qi, int noopen)
	/*
 	 *  hang a device and process q off the stream
	 */
	s->forcedelim = 0;
	s->inuse = 1;
	if(noopen)
		s->opens = 0;

M ss/faultsparc.c => ss/faultsparc.c +0 -1
@@ 25,7 25,6 @@ faultsparc(Ureg *ur)
			read = 0;
	}
	spllo();
print("fault: %s pc=0x%lux addr %lux %d\n", excname(tbr), ur->pc, addr, read); /**/
	if(u == 0){
		dumpregs(ur);
		panic("fault u==0 pc=%lux addr=%lux", ur->pc, addr);

M ss/trap.c => ss/trap.c +0 -2
@@ 214,7 214,6 @@ notify(Ureg *ur)
		unlock(&u->p->debug);
		return;
	}
print("suicide: %s\n", u->note[0].msg);
	if(u->note[0].flag!=NUser && (u->notified || u->notify==0)){
		if(u->note[0].flag == NDebug)
			pprint("suicide: %s\n", u->note[0].msg);


@@ 337,7 336,6 @@ syscall(Ureg *aur)

	u->nerrlab = 0;
	ret = -1;
print("syscall %s %d %d\n", u->p->text, u->p->pid, r7);
	if(!waserror()){
		if(r7 >= sizeof systab/BY2WD){
			pprint("bad sys call number %d pc %lux\n", r7, ((Ureg*)UREGADDR)->pc);