diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 9e9aecda7353..77f6803b24b1 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)init_main.c 8.9 (Berkeley) 1/21/94 - * $Id: init_main.c,v 1.21 1995/04/10 07:44:31 phk Exp $ + * $Id: init_main.c,v 1.22 1995/04/23 04:13:51 phk Exp $ */ #include @@ -204,6 +204,14 @@ main(framep) vmspace0.vm_map.pmap = &vmspace0.vm_pmap; p->p_addr = proc0paddr; /* XXX */ + /* + * proc0 needs to have a coherent frame base, too. + * This probably makes the identical call for the init proc + * that happens later unnecessary since it should inherit + * it during the fork. + */ + cpu_set_init_frame(p, framep); /* XXX! */ + /* * We continue to place resource usage info and signal * actions in the user struct so they're pageable.