| plan 9 kernel history: overview | file list | diff list |
1993/0416/pc/main.c (diff list | history)
| 1993/0413/sys/src/9/pc/main.c:238,250 – 1993/0416/sys/src/9/pc/main.c:238,275 (short | long | prev | next) | ||
| 1991/0711 | void confinit(void) { | |
| 1993/0416 | long x, i, j, n, *l; | |
| 1992/1002 | int pcnt; | |
| 1992/0715 | ulong ktop; | |
| 1993/0330 | char *cp; char *line[MAXCONF]; | |
| 1991/0711 | ||
| 1993/0416 | pcnt = 0; | |
| 1991/0711 | /* | |
| 1993/0416 | * parse configuration args from dos file p9rc */ cp = BOOTARGS; /* where b.com leaves it's config */ cp[BOOTARGSLEN-1] = 0; n = getfields(cp, line, MAXCONF, '\n'); for(j = 0; j < n; j++){ cp = strchr(line[j], '\r'); if(cp) *cp = 0; cp = strchr(line[j], '='); if(cp == 0) continue; *cp++ = 0; if(cp - line[j] >= NAMELEN+1) *(line[j]+NAMELEN-1) = 0; confname[nconf] = line[j]; confval[nconf] = cp; if(strcmp(confname[nconf], "kernelpercent") == 0) pcnt = 100 - atoi(confval[nconf]); nconf++; } /* | |
| 1991/0823 | * the first 640k is the standard useful memory | |
| 1992/1113 | * the next 128K is the display, I/O mem, and BIOS | |
| 1992/0429 | * the last 256k belongs to the roms and other devices | |
| 1993/0413/sys/src/9/pc/main.c:285,294 – 1993/0416/sys/src/9/pc/main.c:310,318 | ||
| 1992/0625 | conf.base1 = 1*MB; | |
| 1992/1016 | conf.npage1 = (i*MB - conf.base1)/BY2PG; | |
| 1991/0711 | conf.npage = conf.npage0 + conf.npage1; | |
| 1992/1002 | ||
| 1992/1113 | conf.ldepth = 0; | |
| 1992/1014 |
| |
| 1993/0416 | if(pcnt < 10) pcnt = 70; | |
| 1992/1014 | conf.upages = (conf.npage*pcnt)/100; | |
| 1992/1016 | ktop = PGROUND((ulong)end); | |
| 1993/0413/sys/src/9/pc/main.c:305,332 – 1993/0416/sys/src/9/pc/main.c:329,334 | ||
| 1993/0401 | conf.nfloppy = 2; conf.nhard = 2; | |
| 1993/0413 | conf.nmach = 1; | |
| 1993/0330 |
| |
| 1992/0625 | ||
| 1991/0711 | } | |
| 1991/0913 | char *mathmsg[] = | |