| plan 9 kernel history: overview | file list | diff list |
1991/0717/pc/main.c (diff list | history)
| 1991/0716/sys/src/9/pc/main.c:20,26 – 1991/0717/sys/src/9/pc/main.c:20,28 (short | long | prev | next) | ||
| 1991/0711 | print("%d pages in bank0, %d pages in bank1\n", conf.npage0, conf.npage1); print("edata == %lux, end == %lux\n", &edata, &end); mmuinit(); | |
| 1991/0717 | print("mmu inited\n"); | |
| 1991/0716 | procinit0(); | |
| 1991/0717 | print("proc inited\n"); | |
| 1991/0716 | initseg(); grpinit(); chaninit(); | |
| 1991/0716/sys/src/9/pc/main.c:31,36 – 1991/0717/sys/src/9/pc/main.c:33,39 | ||
| 1991/0716 | swapinit(); pageinit(); userinit(); | |
| 1991/0717 | print("user inited\n"); | |
| 1991/0711 | ||
| 1991/0716 | schedinit(); | |
| 1991/0712 | } | |
| 1991/0716/sys/src/9/pc/main.c:94,102 – 1991/0717/sys/src/9/pc/main.c:97,108 | ||
| 1991/0716 | /* * Kernel Stack | |
| 1991/0717 | * * N.B. The -4 for the stack pointer is important. Gotolabel * uses the bottom 4 bytes of stack to store it's return pc. | |
| 1991/0716 | */ p->sched.pc = (ulong)init0; | |
| 1991/0717 | p->sched.sp = USERADDR + BY2PG - 4; | |
| 1991/0716 | p->upage = newpage(1, 0, USERADDR|(p->pid&0xFFFF)); /* | |
| 1991/0716/sys/src/9/pc/main.c:126,143 – 1991/0717/sys/src/9/pc/main.c:132,137 | ||
| 1991/0716 | ready(p); | |
| 1991/0711 | } | |
| 1991/0716 |
| |
| 1991/0625 |
| |
| 1991/0702 |
| |
| 1991/0625 | ||
| 1991/0716 |
| |
| 1991/0625 |
| |
| 1991/0716 | Conf conf; | |
| 1991/0711 | void | |
| 1991/0716/sys/src/9/pc/main.c:185,191 – 1991/0717/sys/src/9/pc/main.c:179,185 | ||
| 1991/0711 | conf.base1 = 1024/4; conf.npage = conf.npage0 + conf.npage1; | |
| 1991/0717 | conf.maxialloc = (conf.npage0*BY2PG-PGROUND((ulong)&end)); | |
| 1991/0711 | mul = 1; conf.nproc = 20 + 50*mul; | |
| 1991/0716/sys/src/9/pc/main.c:269,271 – 1991/0717/sys/src/9/pc/main.c:263,272 | ||
| 1991/0716 | lights(int val) { | |
| 1991/0702 | } | |
| 1991/0717 | int mouseputc(IOQ *q, int c) { return c; } | |