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

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

1990/0802/sys/src/9/gnot/main.c:59,691990/08163/sys/src/9/gnot/main.c:59,72 (short | long | prev | next)
1990/03091    
machinit(void) 
{ 
	int n; 
1990/08163    
	long fpnull = 0; 
1990/03091    
 
	n = m->machno; 
	memset(m, 0, sizeof(Mach)); 
	m->machno = n; 
	m->mmask = 1<<m->machno; 
1990/08163    
	m->fpstate = FPinit; 
	fprestore((FPsave*)&fpnull); 
1990/03091    
} 
 
void 
1990/0802/sys/src/9/gnot/main.c:125,1321990/08163/sys/src/9/gnot/main.c:128,134
1990/03091    
	p->pgrp = newpgrp(); 
	strcpy(p->text, "*init*"); 
1990/0312    
	strcpy(p->pgrp->user, protouser); 
1990/03091    
/*	savefpregs(&initfp);	/**/ 
/*	p->fpstate = FPinit;	/**/ 
1990/08163    
	p->fpstate = FPinit; 
1990/03091    
 
	/* 
	 * Kernel Stack 


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