~kris/9p

9hist

00ac2b7d99eeebd6ea9aa7db8fee734cc6e9312d — David du Colombier 32 years ago 7e60367
Plan 9 from Bell Labs 1993-12-24
3 files changed, 8 insertions(+), 6 deletions(-)

M carrera/clock.c
M carrera/mem.h
M carrera/screen.c
M carrera/clock.c => carrera/clock.c +2 -0
@@ 76,6 76,8 @@ clock(Ureg *ur)
		m->load = (m->load*19+nrun)/20;
	}

	kproftimer(ur->pc);

	kmapinval();

	if((active.machs&(1<<m->machno)) == 0)

M carrera/mem.h => carrera/mem.h +1 -1
@@ 140,7 140,7 @@
#define	PTEPERTAB	(PTEMAPMEM/BY2PG)
#define STLBLOG		13
#define STLBSIZE	(1<<STLBLOG)
#define KPTELOG		6
#define KPTELOG		7
#define KPTESIZE	(1<<KPTELOG)
#define SEGMAPSIZE	512


M carrera/screen.c => carrera/screen.c +5 -5
@@ 74,8 74,8 @@ VGAmode dfltmode =
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0f, 
	0xff, 
	/* attribute */
	0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x14, 0x07, 
	0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 
	0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 
	0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 
	0x01, 0x00, 0x0f, 0x00, 0x00, 
	/* special */
	0x00, 0x00, 0xbc, 0x00, 0x00, 0x00, 0x28, 0x00, 


@@ 443,7 443,7 @@ setmode(VGAmode *v)
	for(i = 0; i < sizeof(v->attribute); i++)
		arout(i, v->attribute[i]);

	EISAOUTB(0x3C6, 0xFF);	/* pel mask */
	EISAOUTB(0x3C6, 0x0F);	/* pel mask */
	EISAOUTB(0x3C8, 0x00);	/* pel write address */

	EISAOUTB(0x3bf, 0x03);	/* hercules compatibility reg */


@@ 523,8 523,8 @@ screenupdate(void)
		for(i = 0; i < len; i += 8) {
			s = (ulong*)(sp+i);
			h = (ulong*)(hp+i);
			in1 = s[0];
			in2 = s[1];
			in1 = ~s[0];
			in2 = ~s[1];
			h[0] = swiz(in2);
			h[1] = swiz(in1);
		}