plan 9 kernel history: overview | file list | diff list

1990/0312/gnot/main.c (diff list | history)

1990/0312/sys/src/9/gnot/main.c:23,291990/0320/sys/src/9/gnot/main.c:23,28 (short | long | prev | next)
1990/03091    
void 
main(void) 
{ 
	Lock l; 
1990/0312    
	unloadboot(); 
1990/03091    
	machinit(); 
	mmuinit(); 
1990/0312/sys/src/9/gnot/main.c:69,801990/0320/sys/src/9/gnot/main.c:68,79
1990/03091    
	for(l=0; l<4*1024*1024; l+=BY2PG) 
		putmmu(l, INVALIDPTE); 
	/* 
	 * Two meg of usable memory 
1990/0320    
	 * Four meg of usable memory, with top 256K for screen 
1990/03091    
	 */ 
	for(i=1,l=KTZERO; i<2*1024*1024/BY2PG; l+=BY2PG,i++) 
1990/0320    
	for(i=1,l=KTZERO; i<(4*1024*1024-256*1024)/BY2PG; l+=BY2PG,i++) 
1990/03091    
		putkmmu(l, PPN(l)|PTEVALID|PTEKERNEL); 
	/* 
	 * Screen at two meg 
1990/0320    
	 * Screen at top of memory 
1990/03091    
	 */ 
	for(i=0,d=DISPLAYRAM; i<256*1024/BY2PG; d+=BY2PG,l+=BY2PG,i++) 
		putkmmu(l, PPN(d)|PTEVALID|PTEKERNEL); 
1990/0312/sys/src/9/gnot/main.c:234,2421990/0320/sys/src/9/gnot/main.c:233,241
1990/03091    
	conf.nmach = 1; 
	if(conf.nmach > MAXMACH) 
		panic("confinit"); 
	conf.nproc = 15; 
1990/0320    
	conf.nproc = 32; 
1990/03091    
	conf.npgrp = 15; 
	conf.npage = (2*1024*1024)/BY2PG; 
1990/0320    
	conf.npage = (4*1024*1024-256*1024)/BY2PG; 
1990/03091    
	conf.npte = 500; 
	conf.nmod = 50; 
1990/0312    
	conf.nalarm = 1000; 
rm: /tmp/sd.78997.*: No such file or directory 


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