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

1995/0407/pc/devvga.c (diff list | history)

1995/0406/sys/src/9/pc/devvga.c:328,3391995/0407/sys/src/9/pc/devvga.c:328,345 (short | long | prev | next)
1995/0406    
			y = strtoul(field[2], 0, 0); 
1994/0624    
 
1995/0406    
		/* see if it fits in the usual place */ 
		if(x <= 2*Footprint){ 
1995/0407    
		if(x <= Footprint){ 
1995/0406    
			screenmem = SCREENMEM; 
			if(x == 0) 
1995/0407    
			if(x == 0){ 
1995/0406    
				footprint = Footprint; 
			else 
1995/0407    
				footshift = Footshift; 
			} else { 
1995/0406    
				footprint = x; 
1995/0407    
				for(n = 0; n < 31; n++) 
					if((1<<n) >= footprint) 
						break; 
				footshift = n; 
			} 
1995/0406    
			gscreen.base = (void*)screenmem; 
			return; 
		} 
1995/0406/sys/src/9/pc/devvga.c:357,3621995/0407/sys/src/9/pc/devvga.c:363,372
1995/0406    
		screenmem = y; 
		gscreen.base = (void*)y; 
		footprint = x; 
1995/0407    
		for(n = 0; n < 31; n++) 
			if((1<<n) >= footprint) 
				break; 
		footshift = n; 
1995/0406    
		return; 
	} 
 


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