[comp.os.minix] execing from INIT

leo@krabat.marco.de (Matthias Pfaller) (01/08/91)

After some traceing I discovered the bug that prevented init to exec.
I now run the nlmug init as process 1 execed from the system init.
All you have to do is to delete one line in mm/break.c

In adjust() you have to delete the marked line; that's all.

  mem_sp = &rmp->mp_seg[S];	/* pointer to stack segment map */
  changed = 0;			/* set when either segment changed */

> if(rmp - mproc == INIT_PROC_NR) return(OK);	/* don't bother init */

  /* See if stack size has gone negative (i.e., sp too close to 0xFFFF...) */
  base_of_stack = (long) mem_sp->mem_vir + (long) mem_sp->mem_len;

	Matthias Pfaller