~kris/9p

9hist

143544de46fc45a05ff738be8fd08edb6b1ed620 — David du Colombier 34 years ago 575ca4a
Plan 9 from Bell Labs 1992-07-14
7 files changed, 9 insertions(+), 5 deletions(-)

M gnot/trap.c
M pc/trap.c
M port/devlance.c
M port/devpipe.c
M port/sysproc.c
M power/trap.c
M ss/trap.c
M gnot/trap.c => gnot/trap.c +1 -1
@@ 178,7 178,7 @@ notify(Ureg *ur)
		sprint(n->msg+l, " pc=0x%.8lux", ur->pc);
	}
	if(n->flag!=NUser && (u->notified || u->notify==0)){
		if(u->note[0].flag == NDebug)
		if(n->flag == NDebug)
			pprint("suicide: %s\n", n->msg);
    Die:
		qunlock(&u->p->debug);

M pc/trap.c => pc/trap.c +1 -1
@@ 391,7 391,7 @@ notify(Ureg *ur)
		sprint(n->msg+l, " pc=0x%.8lux", ur->pc);
	}
	if(n->flag!=NUser && (u->notified || u->notify==0)){
		if(u->note[0].flag == NDebug)
		if(n->flag == NDebug)
			pprint("suicide: %s\n", n->msg);
    Die:
		qunlock(&u->p->debug);

M port/devlance.c => port/devlance.c +3 -0
@@ 741,6 741,9 @@ lanceup(Etherpkt *p, int len)
	Ethertype *e;
	int t;

	if(len <= 0)
		return;

	t = (p->type[0]<<8) | p->type[1];
	for(e = &l.e[0]; e < &l.e[Ntypes]; e++){
		/*

M port/devpipe.c => port/devpipe.c +1 -1
@@ 255,7 255,7 @@ pipewrite(Chan *c, void *va, long n, ulong offset)
{
	USED(offset);
	if(waserror()) {
		postnote(u->p, 1, "sys: write on closed pipe", NExit);
		postnote(u->p, 1, "sys: write on closed pipe", NUser);
		error(Egreg);
	}
	n = streamwrite(c, va, n, 0);

M port/sysproc.c => port/sysproc.c +1 -0
@@ 12,6 12,7 @@ int	shargs(char*, int, char**);
long
sysr1(ulong *arg)
{
	xsummary();
	print("[%s %s %d] r1 = %d\n", u->p->user, u->p->text, u->p->pid, arg[0]);
	return 0;
}

M power/trap.c => power/trap.c +1 -1
@@ 396,7 396,7 @@ notify(Ureg *ur)
		sprint(n->msg+l, " pc=0x%.8lux", ur->pc);
	}
	if(n->flag!=NUser && (u->notified || u->notify==0)){
		if(u->note[0].flag == NDebug)
		if(n->flag == NDebug)
			pprint("suicide: %s\n", n->msg);
    Die:
		qunlock(&u->p->debug);

M ss/trap.c => ss/trap.c +1 -1
@@ 249,7 249,7 @@ notify(Ureg *ur)
		sprint(n->msg+l, " pc=0x%.8lux", ur->pc);
	}
	if(n->flag!=NUser && (u->notified || u->notify==0)){
		if(u->note[0].flag == NDebug)
		if(n->flag == NDebug)
			pprint("suicide: %s\n", n->msg);
    Die:
		qunlock(&u->p->debug);