| plan 9 kernel history: overview | file list | diff list |
1991/0817/gnot/mmu.c (diff list | history)
| 1991/0802/sys/src/9/gnot/mmu.c:140,146 – 1991/0817/sys/src/9/gnot/mmu.c:140,151 (short | long | prev | next) | ||
| 1990/06021 | kmap(Page *pg) { KMap *k; | |
| 1991/0817 | int s; | |
| 1990/06021 | ||
| 1991/0817 | if(u && u->p){ s = u->p->state; u->p->state = MMUing; } | |
| 1990/06021 | lock(&kmapalloc); k = kmapalloc.free; | |
| 1990/0709 | if(k == 0){ | |
| 1991/0802/sys/src/9/gnot/mmu.c:151,156 – 1991/0817/sys/src/9/gnot/mmu.c:156,163 | ||
| 1990/06021 | unlock(&kmapalloc); k->pa = pg->pa; putkmmu(k->va, PPN(k->pa) | PTEVALID | PTEKERNEL); | |
| 1991/0817 | if(u && u->p) u->p->state = s; | |
| 1990/06021 | return k; } | |