~kris/9p

9hist

e8340e6f211b07ca110ecc6dc9b12ae02dfa62f8 — David du Colombier 33 years ago e056a09
Plan 9 from Bell Labs 1992-11-18
3 files changed, 14 insertions(+), 21 deletions(-)

M pc/l.s
M pc/vga.c
M port/devproc.c
M pc/l.s => pc/l.s +6 -6
@@ 642,8 642,8 @@ TEXT	config(SB),$0
TEXT	l0update(SB),$0
	XORL	AX,AX
	MOVL	len+8(FP),CX
	MOVL	from+0(FP),SI
	MOVL	to+4(FP),DI
	MOVL	from+4(FP),SI
	MOVL	to+0(FP),DI
l00:
	MOVB	-1(SI)(CX*1),AL
	MOVB	revtab0(SB)(AX*1),AL


@@ 660,8 660,8 @@ l00:
 */
TEXT	l1update(SB),$0
	XORL	AX,AX
	MOVL	from+0(FP),SI
	MOVL	to+4(FP),DI
	MOVL	from+4(FP),SI
	MOVL	to+0(FP),DI
	MOVL	len+8(FP),CX
	MOVB	$(Smmask),AL
	MOVW	$(SRX),DX


@@ 701,8 701,8 @@ l11:	LOOP	l10
 */
TEXT	l2update(SB),$0
	XORL	AX,AX
	MOVL	from+0(FP),SI
	MOVL	to+4(FP),DI
	MOVL	from+4(FP),SI
	MOVL	to+0(FP),DI
	MOVL	len+8(FP),CX
	MOVB	$(Smmask),AL
	MOVW	$(SRX),DX

M pc/vga.c => pc/vga.c +7 -14
@@ 103,12 103,6 @@ static Rectangle mbb;
static Rectangle NULLMBB = {10000, 10000, -10000, -10000};

void
unlocktseng(void) {
	outb(0x3bf, 0x03);
	outb(0x3d8, 0xa0);
}

void
genout(int reg, int val)
{
	if(reg == 0)


@@ 274,7 268,6 @@ setscreen(int maxx, int maxy, int ldepth)
	if(p == 0)
		panic("can't alloc screen bitmap");
	mbb = NULLMBB;
	cga = 0;

	/*
	 *  zero hard screen and setup a bitmap for the new size


@@ 338,6 331,7 @@ setscreen(int maxx, int maxy, int ldepth)
		gscreen.ldepth = ldepth;
		break;
	}
	cga = 0;
}

void


@@ 346,8 340,6 @@ screeninit(void)
	int i;
	ulong *l;

	unlocktseng();

	/*
	 *  arrow is defined as a big endian
	 */


@@ 427,9 419,6 @@ vgaupdate(void)
	if(r.max.y > gscreen.r.max.y)
		r.max.y = gscreen.r.max.y;

	outb(0x3bf, 0x03);
	outb(0x3d8, 0xa0);

	incs = gscreen.width * BY2WD;
	inch = vgascreen.width * BY2WD;



@@ 457,6 446,8 @@ vgaupdate(void)
		f = memmove;
		len = r.max.x - r.min.x;
		break;
	default:
		return;
	}
	if(len < 1)
		return;


@@ 471,10 462,12 @@ vgaupdate(void)
		} else {
			off = edisp - hp;
			if(off <= len){
				f(hp, sp, off);
				if(off > 0)
					f(hp, sp, off);
				page++;
				outb(0x3cd, (page<<4)|page);
				f(vgascreen.base, sp+off, len - off);
				if(len - off > 0)
					f(vgascreen.base, sp+off, len - off);
			} else {
				f(hp, sp, len);
				page++;

M port/devproc.c => port/devproc.c +1 -1
@@ 573,7 573,7 @@ procctlreq(Proc *p, char *va, int n)
	else if(strncmp(buf, "kill", 4) == 0) {
		if(p->state == Broken)
			ready(p);
		else{
		else {
			if(p->state == Stopped)
				ready(p);
			postnote(p, 0, "sys: killed", NExit);