~kris/9p

9hist

ref: 32b8c41432ac7fc909f0b95e71b9c635bd73b433 9hist/mtx/mmu.c -rw-r--r-- 546 bytes
32b8c414 — David du Colombier Plan 9 from Bell Labs 2001-12-19 24 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include	"u.h"
#include	"../port/lib.h"
#include	"mem.h"
#include	"dat.h"
#include	"fns.h"
#include	"io.h"

void
mmuinit(void)
{
}

void
flushmmu(void)
{
	int x;

	x = splhi();
	up->newtlb = 1;
	mmuswitch(up);
	splx(x);
}

/*
 * called with splhi
 */
void
mmuswitch(Proc *p)
{
	int tp;

	if(p->newtlb) {
		memset(p->pidonmach, 0, sizeof p->pidonmach);
		p->newtlb = 0;
	}
	tp = p->pidonmach[m->machno];
//	putcasid(tp);
}

void
mmurelease(Proc* p)
{
	memset(p->pidonmach, 0, sizeof p->pidonmach);
}

void
putmmu(ulong va, ulong pa, Page *pg)
{
}