~kris/9p

9hist

ebfe295ab4300176782cbed7115fb75011338ae2 — David du Colombier 34 years ago 185aadd
Plan 9 from Bell Labs 1992-01-04
2 files changed, 26 insertions(+), 2 deletions(-)

M pc/trap.c
M power/devhotrod.c
M pc/trap.c => pc/trap.c +2 -2
@@ 242,9 242,9 @@ trap(Ureg *ur)
	(*ivec[v])(ur);

	/*
	 *  syscall does it's own notifying
	 *  check user since syscall does it's own notifying
	 */
	if(user)
	if(user && (u->p->procctl || u->nnote))
		notify(ur);
}


M power/devhotrod.c => power/devhotrod.c +24 -0
@@ 336,6 336,30 @@ hotrodread(Chan *c, void *buf, long n, ulong offset)
			}
			if(mp->param[2] != hotsum(buf, m, mp->param[2])){
				hp->addr->lcsr7 = 0xBEEF;
{
	ulong *i, j, posn, nerr, val;

	i = buf;
	posn = -1;
	nerr = 0;
	for(j = 0; j < n/4; j++) {
		val = *i & 0xffff;
		if(posn == -1)
			posn = val+1;
		else if(posn != val) {
			print("error at offset %d %8lux != %8lux word=%8lux\n", 
						j, posn, val, *i);
			posn = -1;
			if(++nerr > 10) {
				print("too many\n");
				break;
			}
		}
		else
			posn++;
		i++;
	}
}
				print("hotrod cksum err is %lux sb %lux\n",
					hotsum(buf, m, 1), mp->param[2]);
/*