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

1991/1102/power/bboot.c (diff list | history)

1991/0327/sys/src/9/power/bboot.c:3,91991/1102/sys/src/9/power/bboot.c:3,9 (short | long | prev | next)
1990/0424    
 
#include <fcall.h> 
 
1990/0427    
#define DEFFILE "/mips/9" 
1991/1102    
#define DEFFILE "/mips/9power" 
1990/1127    
#define DEFSYS "bit!bootes" 
1990/0427    
 
Fcall	hdr; 
1991/0327/sys/src/9/power/bboot.c:283,2891991/1102/sys/src/9/power/bboot.c:283,289
1990/0424    
 
	print("nop..."); 
	hdr.type = Tnop; 
1990/1127    
	hdr.tag = ~0; 
1991/1102    
	hdr.tag = NOTAG; 
1990/0424    
	n = convS2M(&hdr, buf); 
1990/0427    
	if(write(fd, buf, n) != n){ 
1990/1127    
		print("n = %d\n", n); 
1991/0327/sys/src/9/power/bboot.c:308,3211991/1102/sys/src/9/power/bboot.c:308,321
1990/0427    
		prerror("not Rnop"); 
		return; 
	} 
1990/1127    
	if(hdr.tag != ~0){ 
		prerror("tag not ~0"); 
1991/1102    
	if(hdr.tag != NOTAG){ 
		prerror("tag not NOTAG"); 
1990/1127    
		return; 
	} 
1990/0424    
 
	print("session..."); 
	hdr.type = Tsession; 
1990/1127    
	hdr.tag = ~0; 
1991/1102    
	hdr.tag = NOTAG; 
1990/0424    
	n = convS2M(&hdr, buf); 
1990/0427    
	if(write(fd, buf, n) != n){ 
		prerror("write session"); 
1991/0327/sys/src/9/power/bboot.c:330,3371991/1102/sys/src/9/power/bboot.c:330,337
1990/0427    
		prerror("format session"); 
		return; 
	} 
1990/1127    
	if(hdr.tag != ~0){ 
		prerror("tag not ~0"); 
1991/1102    
	if(hdr.tag != NOTAG){ 
		prerror("tag not NOTAG"); 
1990/0427    
		return; 
	} 
1990/1127    
	if(hdr.type == Rerror){ 


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