@@ 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:
@@ 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
@@ 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);