UNIX v7 calling sched()
George Miler
miler at osl.csc.ncsu.edu
Sat Apr 13 03:29:39 AEST 1991
I am working on a project at NC State University involving porting
UNIX Version 7 to a 68000 based machine. I have reached a point where
a few things are a bit unclear to me.
In function main(), the internal inits are done and newproc is
called to set up "/etc/init". Once this is done, main() returns and
the code in start.s does a return from interrupt to get things going.
What I don't understand is how sched() gets going. The sched() function
is called if newproc() does not create the init process, followed by
main() returning. But, of course, we need /etc/init so that is done.
main ()
{
......
if (newproc()) <==== true, create /etc/init process
{
copy (/etc/init)
return; <==== exit main, starts copied process
}
sched (); <==== never reached if did /etc/init
}
Any help or explanation you are able to send me will be greatly
appericated.
George Miler
miler at adm.csc.ncsu.edu
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
George B. Miler North Carolina State University
miler at adm.csc.ncsu.edu {decvax, gatech}!mcnc!ncsuvx!cscadm!miler
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
More information about the Comp.unix.wizards
mailing list