| plan 9 kernel history: overview | file list | diff list |
1993/0918/carrera/main.c (diff list | history)
| 1993/0915/sys/src/9/carrera/main.c:35,41 – 1993/0918/sys/src/9/carrera/main.c:35,41 (short | long | prev | next) | ||
| 1993/0903 | main(void) { tlbinit(); /* Very early to establish IO mappings */ | |
| 1993/0918 | ioinit(1); | |
| 1993/0903 | arginit(); confinit(); savefpregs(&initfp); | |
| 1993/0915/sys/src/9/carrera/main.c:46,53 – 1993/0918/sys/src/9/carrera/main.c:46,53 | ||
| 1993/0903 | printinit(); | |
| 1993/0905 | serialinit(); | |
| 1993/0903 | vecinit(); | |
| 1993/0914 |
| |
| 1993/0918 | screeninit(); print("\n\nBrazil\n"); | |
| 1993/0903 | pageinit(); procinit0(); initseg(); | |
| 1993/0915/sys/src/9/carrera/main.c:163,177 – 1993/0918/sys/src/9/carrera/main.c:163,190 | ||
| 1993/0903 | * Map IO address space in wired down TLB entry 1 */ void | |
| 1993/0918 | ioinit(int mapeisa) | |
| 1993/0903 | { | |
| 1993/0907 | ulong devphys, isaphys, intphys, isamphys; | |
| 1993/0903 | ||
| 1993/0904 | /* | |
| 1993/0918 | * If you want to segattach the eisa space these * mappings must be turned off to prevent duplication * of the tlb entries */ if(mapeisa) { isaphys = IOPTE|PPN(Eisaphys)|PTEGLOBL; isamphys = 0x04000000|IOPTE|PTEGLOBL; } else { isaphys = PTEGLOBL; isamphys = PTEGLOBL; } /* | |
| 1993/0906 | * Map devices and the Eisa control space | |
| 1993/0904 | */ | |
| 1993/0908 | devphys = IOPTE|PPN(Devicephys); | |
| 1993/0914 |
| |
| 1993/0903 | ||
| 1993/0906 | puttlbx(1, Devicevirt, devphys, isaphys, PGSZ64K); | |
| 1993/0915/sys/src/9/carrera/main.c:179,185 – 1993/0918/sys/src/9/carrera/main.c:192,197 | ||
| 1993/0907 | * Map Interrupt control & Eisa memory | |
| 1993/0904 | */ | |
| 1993/0908 | intphys = IOPTE|PPN(Intctlphys); | |
| 1993/0915 |
| |
| 1993/0904 | ||
| 1993/0907 | puttlbx(2, Intctlvirt, intphys, isamphys, PGSZ1M); | |
| 1993/0915/sys/src/9/carrera/main.c:187,195 – 1993/0918/sys/src/9/carrera/main.c:199,205 | ||
| 1993/0905 | IO(ushort, Intenareg) = 0xffff; | |
| 1993/0908 | /* Look at the first 16M of Eisa memory */ | |
| 1993/0903 | } | |
| 1993/0906 | /* | |
| 1993/0915/sys/src/9/carrera/main.c:364,370 – 1993/0918/sys/src/9/carrera/main.c:374,380 | ||
| 1993/0903 | conf.npage1 = 0; conf.base1 = 0; | |
| 1993/0904 |
| |
| 1993/0918 | conf.upages = (conf.npage*50)/100; | |
| 1993/0903 | conf.nmach = 1; | |
| 1993/0915/sys/src/9/carrera/main.c:377,383 – 1993/0918/sys/src/9/carrera/main.c:387,393 | ||
| 1993/0903 | conf.arp = 32; conf.frag = 32; | |
| 1993/0907 |
| |
| 1993/0918 | conf.monitor = 1; | |
| 1993/0906 | ||
| 1993/0905 | conf.copymode = 0; /* copy on write */ | |
| 1993/0903 | } | |