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

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

1990/0928/sys/src/9/gnot/main.c:101,1111990/1004/sys/src/9/gnot/main.c:101,107 (short | long | prev | next)
1990/03091    
{ 
1990/0613    
	Chan *c; 
 
	u->nerrlab = 0; 
1990/03091    
	m->proc = u->p; 
	u->p->state = Running; 
	u->p->mach = m; 
	spllo(); 
1990/1004    
	restore(); 
1990/03091    
	chandevinit(); 
	 
	u->slash = (*devtab[0].attach)(0); 
1990/0928/sys/src/9/gnot/main.c:139,1451990/1004/sys/src/9/gnot/main.c:135,140
1990/03091    
	p->pgrp = newpgrp(); 
	strcpy(p->text, "*init*"); 
1990/0312    
	strcpy(p->pgrp->user, protouser); 
1990/08163    
	p->fpstate = FPinit; 
1990/03091    
 
	/* 
	 * Kernel Stack 
1990/0928/sys/src/9/gnot/main.c:146,1521990/1004/sys/src/9/gnot/main.c:141,147
1990/03091    
	 */ 
	p->sched.pc = (ulong)init0; 
	p->sched.sp = USERADDR+BY2PG-20;	/* BUG */ 
	p->sched.sr = SUPER|SPL(7); 
1990/1004    
	p->sched.sr = SUPER|SPL(0); 
1990/03091    
	p->upage = newpage(0, 0, USERADDR|(p->pid&0xFFFF)); 
 
	/* 
1990/0928/sys/src/9/gnot/main.c:180,1851990/1004/sys/src/9/gnot/main.c:175,181
1990/03091    
	s->minva = UTZERO; 
	s->maxva = UTZERO+BY2PG; 
 
1990/1004    
	m->proc = p; 
1990/03091    
	ready(p); 
} 
 


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