~kris/9p

9hist

7746749c8e31e60774072283e1f2131a40a34a10 — David du Colombier 35 years ago 12762ac
Plan 9 from Bell Labs 1991-06-11
2 files changed, 3 insertions(+), 6 deletions(-)

M port/fault.c
M power/main.c
M port/fault.c => port/fault.c +1 -4
@@ 226,10 226,6 @@ fault(ulong addr, int read)
		m->tlbfault++;

	putmmu(mmuvirt, mmuphys);
/*
	if(s - u->p->seg == LSEG)
		print("%d: f %lux v %lux p %lux\n", u->p->pid, o->flag, mmuvirt, mmuphys);
*/
	return 0;
}



@@ 299,5 295,6 @@ seg(Proc *p, ulong addr)
	for(s=p->seg; s < et; s++)
		if(s->o && s->minva<=addr && addr<s->maxva)
			return s;

	return 0;
}

M power/main.c => power/main.c +2 -2
@@ 271,7 271,7 @@ userinit(void)
	 */
	s = &p->seg[SSEG];
	s->proc = p;
	s->o = neworig(USTKTOP-BY2PG, 1, OWRPERM, 0);
	s->o = neworig(USTKTOP-BY2PG, 1, OWRPERM|OISMEM, 0);
	s->o->pte[0].page = newpage(0, 0, USTKTOP-BY2PG);
	memmove((ulong*)(s->o->pte[0].page->pa|KZERO|(BY2PG-argsize)), 
		argbuf + sizeof(argbuf) - argsize, argsize);


@@ 290,7 290,7 @@ userinit(void)
	 * On the mips, init text must be OCACHED to avoid reusing page
	 * and getting in trouble with the hardware instruction cache.
	 */
	s->o = neworig(UTZERO, 1, OCACHED, 0);
	s->o = neworig(UTZERO, 1, OCACHED|OISMEM, 0);
	s->o->pte[0].page = newpage(0, 0, UTZERO);
	s->o->npage = 1;
	k = kmap(s->o->pte[0].page);