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,631993/0906/sys/src/9/carrera/main.c:54,60 (short | long | prev | next)
1993/0903    
	rootfiles(); 
	swapinit(); 
	userinit(); 
1993/0905    
enab(); 
spllo(); 
for(;;) 
  ; 
1993/0906    
screeninit(); 
1993/0903    
	schedinit(); 
} 
 
1993/0905/sys/src/9/carrera/main.c:166,1961993/0906/sys/src/9/carrera/main.c:163,206
1993/0903    
void 
ioinit(void) 
{ 
	ulong phys; 
1993/0906    
	ulong devphys, isaphys, intphys; 
1993/0903    
 
1993/0904    
	/* 
	 * Map devices 
1993/0906    
	 * Map devices and the Eisa control space 
1993/0904    
	 */ 
1993/0903    
	phys = PPN(Devicephys)|PTEGLOBL|PTEVALID|PTEWRITE|PTEUNCACHED; 
1993/0904    
	puttlbx(1, Devicevirt, phys, PTEGLOBL, PGSZ64K); 
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 
	 */ 
	phys = PPN(Intctlphys)|PTEGLOBL|PTEVALID|PTEWRITE|PTEUNCACHED; 
	puttlbx(2, Intctlvirt, phys, PTEGLOBL, PGSZ4K); 
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) 
{ 
	/** BUG get from PROM */ 
	static uchar tea[] = { 0x00, 0x00, 0x77, 0x01, 0xD2, 0xba }; 
1993/0906    
	int i; 
	uchar tbuf[8]; 
1993/0905    
 
	memmove(ea, tea, sizeof(tea)); 
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,3651993/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,3901993/0906/sys/src/9/carrera/main.c:391,393
1993/0903    
	USED(f); 
	USED(d); 
} 
                 
int 
mouseputc(IOQ *q, int c) 
{ 
	USED(q); 
	USED(c); 
	return 0; 
} 
                 


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