~kris/9p

9hist

4ec0e298ecf760a1add20d4b2cfd44d2813ff888 — David du Colombier 24 years ago 223768b
Plan 9 from Bell Labs 2002-02-01
3 files changed, 4 insertions(+), 12 deletions(-)

M mtx/mmu.c
M port/devproc.c
M port/devtls.c
M mtx/mmu.c => mtx/mmu.c +0 -6
@@ 34,7 34,6 @@ mmuinit(void)
{
	int lhash, mem;
	extern ulong memsize;	/* passed in from ROM monitor */
	ulong v;

	if(ptabsize == 0) {
		/* heuristically size the hash table */


@@ 51,11 50,6 @@ mmuinit(void)
	m->ptabbase = (ulong)xspanalloc(ptabsize, 0, ptabsize);
	putsdr1(PADDR(m->ptabbase) | (ptabmask>>10));
	m->mmupid = PIDBASE;

	v = getdec();
	memset((void*)m->ptabbase, 0, ptabsize);
	v -= getdec();
	print("memset took %lud cycles, dechz %lud\n", v, m->dechz);
}

void

M port/devproc.c => port/devproc.c +2 -2
@@ 277,12 277,12 @@ procopen(Chan *c, int omode)
		break;

	case Qmem:
	case Qnote:
	case Qctl:
		if(p->privatemem)
			error(Eperm);
		/* fall through */
	case Qargs:
	case Qctl:
	case Qnote:
	case Qnoteid:
	case Qstatus:
	case Qwait:

M port/devtls.c => port/devtls.c +2 -4
@@ 1626,10 1626,8 @@ tlsinit(void)
	int n;
	char *cp;

	if((tlsdevs = smalloc(sizeof(TlsRec*) * maxtlsdevs)) == 0)
		panic("tlsinit");
	if((trnames = smalloc((sizeof *trnames) * maxtlsdevs)) == 0)
		panic("tlsinit");
	tlsdevs = smalloc(sizeof(TlsRec*) * maxtlsdevs);
	trnames = smalloc((sizeof *trnames) * maxtlsdevs);

	n = 1;
	for(e = encrypttab; e->name != nil; e++)