Added (temporary) mechanism to pass argc/argv
authorAndrew Waterman <waterman@r53.millennium.berkeley.edu>
Tue, 27 Oct 2009 05:24:03 +0000 (22:24 -0700)
committerAndrew Waterman <waterman@r53.millennium.berkeley.edu>
Tue, 27 Oct 2009 05:24:03 +0000 (22:24 -0700)
commit3cb23255b7ae6388eff69fd0e2511ea8d92778ec
tree0d9dd9651e4087ef3343081570abbf09be58e282
parentd099948f6317ec7974d51911fb4839974c94f605
Added (temporary) mechanism to pass argc/argv

Obviously, the kernel should not be responsible for passing
args to user programs; that's a job for the runtime system.
However, to run real programs from within the manager, this
is a necessary evil.

I pass argc/argv inside of the procinfo struct.  They
are set using a call to proc_init_argc_argv(), and they
are read out by user programs within parlibmain().  The
latter no longer expects to be passed argc/argv; instead,
it grabs them from procinfo.
kern/include/process.h
kern/include/ros/procdata.h
kern/src/env.c
user/apps/parlib/pthread/blackscholes.c
user/parlib/src/i386/entry.S
user/parlib/src/parlibmain.c
user/parlib/src/sparc/entry.S