diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1997-11-06 19:29:57 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1997-11-06 19:29:57 +0000 |
| commit | cb226aaa624a8d8e6c7c5f9aaaa1b415f0e2cf4d (patch) | |
| tree | 41d30ac216370f1121c6fc84569ee33e9be285d6 /sys/kern/init_main.c | |
| parent | c62a76ba79b3368c05aae26e78a7631283e13307 (diff) | |
Notes
Diffstat (limited to 'sys/kern/init_main.c')
| -rw-r--r-- | sys/kern/init_main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 46315e0dbbc4..3c2ae5be55e6 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -39,7 +39,7 @@ * SUCH DAMAGE. * * @(#)init_main.c 8.9 (Berkeley) 1/21/94 - * $Id: init_main.c,v 1.71 1997/09/02 20:05:35 bde Exp $ + * $Id: init_main.c,v 1.72 1997/09/21 22:00:03 gibbs Exp $ */ #include "opt_devfs.h" @@ -150,7 +150,6 @@ main(framep) register struct sysinit **sipp; /* system initialization*/ register struct sysinit **xipp; /* interior loop of sort*/ register struct sysinit *save; /* bubble*/ - int rval[2]; /* SI_TYPE_KTHREAD support*/ /* * Copy the locore.s frame pointer for proc0, this is forked into @@ -207,9 +206,10 @@ main(framep) case SI_TYPE_KTHREAD: /* kernel thread*/ - if (fork(&proc0, NULL, rval)) + if (fork(&proc0, NULL)) panic("fork kernel process"); - cpu_set_fork_handler(pfind(rval[0]), (*sipp)->func, (*sipp)->udata); + cpu_set_fork_handler(pfind(proc0.p_retval[0]), + (*sipp)->func, (*sipp)->udata); break; default: @@ -663,7 +663,7 @@ start_init(p) * Otherwise return to main() which returns to btext * which completes the system startup. */ - if ((error = execve(p, &args, &retval[0])) == 0) + if ((error = execve(p, &args)) == 0) return; if (error != ENOENT) printf("exec %s: error %d\n", path, error); |
