~kris/9p

9hist

bc895e1c896a888bae81392fb13b301a1c20352f — David du Colombier 24 years ago e11dba4
Plan 9 from Bell Labs 2002-01-17
1 files changed, 3 insertions(+), 0 deletions(-)

M mtx/trap.c
M mtx/trap.c => mtx/trap.c +3 -0
@@ 316,6 316,7 @@ faultpower(Ureg *ureg, ulong addr, int read)
		}
		sprint(buf, "sys: trap: fault %s addr=0x%lux", read? "read" : "write", addr);
		postnote(up, 1, buf, NDebug);
dumpregs(ureg);
	}
	up->insyscall = insyscall;
}


@@ 720,6 721,7 @@ notify(Ureg* ur)
		qunlock(&up->debug);
		pexit(n->msg, n->flag!=NDebug);
	}
print("notify: old usp %lux\n", ur->usp);
	sp = ur->usp & ~(BY2V-1);
	sp -= sizeof(Ureg);



@@ 746,6 748,7 @@ notify(Ureg* ur)
	up->nnote--;
	memmove(&up->lastnote, &up->note[0], sizeof(Note));
	memmove(&up->note[0], &up->note[1], up->nnote*sizeof(Note));
print("notify: usp %lux\n", ur->usp);

	qunlock(&up->debug);
	splx(s);