| plan 9 kernel history: overview | file list | diff list |
1992/0630/gnot/mmu.c (diff list | history)
| 1992/0625/sys/src/9/gnot/mmu.c:82,93 – 1992/0630/sys/src/9/gnot/mmu.c:82,94 (short | long | prev | next) | ||
| 1990/06021 | kmapinit(void) { | |
| 1992/0625 | int i; | |
| 1992/0630 | ulong endscreen; | |
| 1992/0625 | Page *p; | |
| 1990/06021 | KMap *k; if(kmapalloc.init == 0){ k = &kmapalloc.arena[0]; | |
| 1991/0821 |
| |
| 1992/0630 | k->va = KZERO|(MB4-BY2PG); | |
| 1990/06021 | k->next = 0; kmapalloc.free = k; kmapalloc.init = 1; | |
| 1992/0625/sys/src/9/gnot/mmu.c:95,103 – 1992/0630/sys/src/9/gnot/mmu.c:96,108 | ||
| 1990/06021 | } | |
| 1991/0821 | ||
| 1992/0625 | i = 0; | |
| 1992/0630 | /* * Reclaim map register for pages in bank0; * screen is in virtual space overlaying physical pages; be careful */ endscreen = (PGROUND((ulong)end)&~KZERO) + 256*1024; | |
| 1992/0625 | for(p = palloc.head; p; p = p->next) { | |
| 1992/0630 | if(p->pa >= endscreen && p->pa < MB4) { | |
| 1992/0625 | k = &kmapalloc.arena[p->pa/BY2PG]; k->va = p->pa|KZERO; kunmap(k); | |