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

1992/1113/pc/main.c (diff list | history)

1992/1112/sys/src/9/pc/main.c:232,2381992/1113/sys/src/9/pc/main.c:232,238 (short | long | prev | next)
1991/0711    
 
	/* 
1991/0823    
	 *  the first 640k is the standard useful memory 
	 *  the next 128K is the display 
1992/1113    
	 *  the next 128K is the display, I/O mem, and BIOS 
1992/0429    
	 *  the last 256k belongs to the roms and other devices 
1991/0711    
	 */ 
1991/0823    
	conf.npage0 = 640/4; 
1992/1112/sys/src/9/pc/main.c:271,2781992/1113/sys/src/9/pc/main.c:271,278
1992/1016    
	conf.npage1 = (i*MB - conf.base1)/BY2PG; 
1991/0711    
	conf.npage = conf.npage0 + conf.npage1; 
1992/1002    
 
1992/1112    
	conf.ldepth = 1; 
1992/1014    
	pcnt = screenbits()-1;		/* Calculate % of memory for page pool */ 
1992/1113    
	conf.ldepth = 0; 
	pcnt = (1<<conf.ldepth)-1;		/* Calculate % of memory for page pool */ 
1992/1014    
	pcnt = 70 - (pcnt*10); 
	conf.upages = (conf.npage*pcnt)/100; 
	if(conf.npage - conf.upages < 1572864/BY2PG) 


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