| plan 9 kernel history: overview | file list | diff list |
1993/0906/carrera/main.c (diff list | history)
| 1993/0905/sys/src/9/carrera/main.c:54,63 – 1993/0906/sys/src/9/carrera/main.c:54,60 (short | long | prev | next) | ||
| 1993/0903 | rootfiles(); swapinit(); userinit(); | |
| 1993/0905 |
| |
| 1993/0906 | screeninit(); | |
| 1993/0903 | schedinit(); } | |
| 1993/0905/sys/src/9/carrera/main.c:166,196 – 1993/0906/sys/src/9/carrera/main.c:163,206 | ||
| 1993/0903 | void ioinit(void) { | |
| 1993/0906 | ulong devphys, isaphys, intphys; | |
| 1993/0903 | ||
| 1993/0904 | /* | |
| 1993/0906 | * Map devices and the Eisa control space | |
| 1993/0904 | */ | |
| 1993/0903 |
| |
| 1993/0904 |
| |
| 1993/0906 | devphys = PPN(Devicephys)|PTEGLOBL|PTEVALID|PTEWRITE|PTEUNCACHED; isaphys = PPN(Eisaphys)|PTEGLOBL|PTEVALID|PTEWRITE|PTEUNCACHED; | |
| 1993/0903 | ||
| 1993/0906 | puttlbx(1, Devicevirt, devphys, isaphys, PGSZ64K); | |
| 1993/0904 | /* * Map Interrupt control */ | |
| 1993/0906 | intphys = PPN(Intctlphys)|PTEGLOBL|PTEVALID|PTEWRITE|PTEUNCACHED; puttlbx(2, Intctlvirt, intphys, PTEGLOBL, PGSZ4K); | |
| 1993/0904 | ||
| 1993/0905 | /* Enable all devce interrupt */ IO(ushort, Intenareg) = 0xffff; | |
| 1993/0903 | } | |
| 1993/0906 | /* * Pull the ethernet address out of NVRAM */ | |
| 1993/0905 | void enetaddr(uchar *ea) { | |
| 1993/0906 | int i; uchar tbuf[8]; | |
| 1993/0905 |
| |
| 1993/0906 | for(i = 0; i < 8; i++) tbuf[i] = ((uchar*)(NvramRO+Enetoffset))[i]; print("ether:"); for(i = 0; i < 6; i++) { ea[i] = tbuf[7-i]; print("%2.2ux", ea[i]); } print("\n"); | |
| 1993/0905 | } | |
| 1993/0903 | /* | |
| 1993/0905/sys/src/9/carrera/main.c:360,365 – 1993/0906/sys/src/9/carrera/main.c:370,377 | ||
| 1993/0903 | conf.arp = 32; conf.frag = 32; | |
| 1993/0906 | conf.monitor = 1; | |
| 1993/0905 | conf.copymode = 0; /* copy on write */ | |
| 1993/0903 | } | |
| 1993/0905/sys/src/9/carrera/main.c:379,390 – 1993/0906/sys/src/9/carrera/main.c:391,393 | ||
| 1993/0903 | USED(f); USED(d); } | |