~kris/9p

9hist

2efa7364affae95f74459274a1ade99419b4fa68 — David du Colombier 32 years ago 022e3f7
Plan 9 from Bell Labs 1993-12-28
4 files changed, 8 insertions(+), 12 deletions(-)

M carrera/faultmips.c
M carrera/mmu.c
M carrera/screen.c
M port/devcons.c
M carrera/faultmips.c => carrera/faultmips.c +2 -0
@@ 7,6 7,8 @@
#include	"../port/error.h"
#include	"io.h"

static int iwf;

/*
 * Ask if the instruction at EPC could have cause this badvaddr
 */

M carrera/mmu.c => carrera/mmu.c +1 -2
@@ 285,8 285,7 @@ putmmu(ulong tlbvirt, ulong tlbphys, Page *pg)
	ctl = &pg->cachectl[m->machno];
	switch(*ctl) {
	case PG_TXTFLUSH:
cleancache();		/* Too expensive */
/*		icflush((void*)pg->va, BY2PG);*/
		icflush((void*)pg->va, BY2PG);
		*ctl = PG_NOFLUSH;
		break;
	case PG_DATFLUSH:

M carrera/screen.c => carrera/screen.c +5 -5
@@ 82,10 82,9 @@ VGAmode dfltmode =
	0x0a, 0x00, 0x43, 0x1f, 
};

	Lock		screenlock;
	GSubfont*	defont;
extern	GSubfont	defont0;
GSubfont		*defont;

Lock	screenlock;

GBitmap	gscreen =
{


@@ 157,6 156,7 @@ x3to32(uchar x)
	y = (x<<(32-6))|(x<<(32-12))|(x<<(32-18))|(x<<(32-24))|(x<<(32-30));
	return y;
}

static ulong
x6to32(uchar x)
{


@@ 183,7 183,6 @@ screeninit(void)

	/* allocate a new soft bitmap area */
	gscreen.base = xalloc(1024*1024);

	gbitblt(&gscreen, Pt(0, 0), &gscreen, gscreen.r, 0);

	screenwin();


@@ 547,7 546,8 @@ extern	cursorlock(Rectangle);
extern	cursorunlock(void);
/*
 * paste tile into screen.
 * tile is at location r, first pixel in *data.  tl is length of scan line to insert,
 * tile is at location r, first pixel in *data. 
 * tl is length of scan line to insert,
 * l is amount to advance data after each scan line.
 */
void

M port/devcons.c => port/devcons.c +0 -5
@@ 341,7 341,6 @@ enum{
	Qlights,
	Qmsec,
	Qnoise,
	Qnoteid,
	Qnull,
	Qpgrpid,
	Qpid,


@@ 369,7 368,6 @@ Dirtab consdir[]={
	"lights",	{Qlights},	0,		0220,
	"msec",		{Qmsec},	NUMSIZE,	0444,
	"noise",	{Qnoise},	0,		0220,
	"noteid",	{Qnoteid},	NUMSIZE,	0444,
	"null",		{Qnull},	0,		0666,
	"pgrpid",	{Qpgrpid},	NUMSIZE,	0444,
	"pid",		{Qpid},		NUMSIZE,	0444,


@@ 577,9 575,6 @@ consread(Chan *c, void *buf, long n, ulong offset)
	case Qpgrpid:
		return readnum(offset, buf, n, up->pgrp->pgrpid, NUMSIZE);

	case Qnoteid:
		return readnum(offset, buf, n, up->noteid, NUMSIZE);

	case Qpid:
		return readnum(offset, buf, n, up->pid, NUMSIZE);