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

1995/1019/pc/main.c (diff list | history)

1995/0920/sys/src/9/pc/main.c:330,3461995/1019/sys/src/9/pc/main.c:330,353 (short | long | prev | next)
1994/1210    
		p[0] = 0x55; 
		p[1] = 0xAA; 
		p[2] = 4; 
		if(p[0] != 0x55 || p[1] != 0xAA){ 
			putisa(PADDR(p), 2048); 
			p += 2048; 
1995/1019    
		if(p[0] == 0x55 && p[1] == 0xAA){ 
			p += p[2]*512; 
1994/1210    
			continue; 
		} 
		p += p[2]*512; 
1995/1019    
		p[0] = 0xff; 
		p[2048-1] = 0xff; 
		if(p[0] == 0xff && p[2048-1] == 0xff) 
			putisa(PADDR(p), 2048); 
		p += 2048; 
1994/1210    
	} 
 
	p = (uchar*)(KZERO+0xE0000); 
	if(p[0] != 0x55 || p[1] != 0xAA) 
		putisa(PADDR(p), 64*1024); 
1995/1019    
	if(p[0] != 0x55 || p[1] != 0xAA){ 
		p[0] = 0xff; 
		p[64*1024-1] = 0xff; 
		if(p[0] == 0xff && p[64*1024-1] == 0xff) 
			putisa(PADDR(p), 64*1024); 
	} 
1994/1210    
} 
 
void 


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