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,411993/0918/sys/src/9/carrera/main.c:35,41 (short | long | prev | next)
1993/0903    
main(void) 
{ 
	tlbinit();		/* Very early to establish IO mappings */ 
	ioinit(); 
1993/0918    
	ioinit(1); 
1993/0903    
	arginit(); 
	confinit(); 
	savefpregs(&initfp); 
1993/0915/sys/src/9/carrera/main.c:46,531993/0918/sys/src/9/carrera/main.c:46,53
1993/0903    
	printinit(); 
1993/0905    
	serialinit(); 
1993/0903    
	vecinit(); 
	iprint("\n\nBrazil\n"); 
1993/0914    
/* screeninit(); */ 
1993/0918    
	screeninit(); 
	print("\n\nBrazil\n"); 
1993/0903    
	pageinit(); 
	procinit0(); 
	initseg(); 
1993/0915/sys/src/9/carrera/main.c:163,1771993/0918/sys/src/9/carrera/main.c:163,190
1993/0903    
 * Map IO address space in wired down TLB entry 1 
 */ 
void 
ioinit(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    
	isaphys = /* IOPTE|PPN(Eisaphys) */ PTEGLOBL; 
1993/0903    
 
1993/0906    
	puttlbx(1, Devicevirt, devphys, isaphys, PGSZ64K); 
 
1993/0915/sys/src/9/carrera/main.c:179,1851993/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    
	isamphys = /* IOPTE|PPN(Eisamphys) */ PTEGLOBL; 
1993/0904    
 
1993/0907    
	puttlbx(2, Intctlvirt, intphys, isamphys, PGSZ1M); 
 
1993/0915/sys/src/9/carrera/main.c:187,1951993/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 */ 
iprint("write latch\n"); 
/*	IO(uchar, EisaLatch) = 0; /**/ 
iprint("done\n"); 
1993/0903    
} 
 
1993/0906    
/* 
1993/0915/sys/src/9/carrera/main.c:364,3701993/0918/sys/src/9/carrera/main.c:374,380
1993/0903    
	conf.npage1 = 0; 
	conf.base1 = 0; 
 
1993/0904    
	conf.upages = (conf.npage*70)/100; 
1993/0918    
	conf.upages = (conf.npage*50)/100; 
1993/0903    
 
	conf.nmach = 1; 
 
1993/0915/sys/src/9/carrera/main.c:377,3831993/0918/sys/src/9/carrera/main.c:387,393
1993/0903    
	conf.arp = 32; 
	conf.frag = 32; 
 
1993/0907    
	conf.monitor = 0; 
1993/0918    
	conf.monitor = 1; 
1993/0906    
 
1993/0905    
	conf.copymode = 0;		/* copy on write */ 
1993/0903    
} 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)